如何修改注册页面下拉列表用户字段的onChange事件

Hi All,
I have added new fields “Country” and “State” on Sign-up page using User Fields functionality.
Now I want to display/hide State filed based on Selected Country. How to achieve this using Theme component.

In other words I want to control onChange event for “Country” drop-down field.

Thank you.