Como modificar o evento onChange para os campos de usuário drop-down na página de Cadastro

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.