How to hide a field on page load event and make it visible when a selected item in a dropdown is changed?

I managed to hide a field by using hidden=true; in createScript section. The problem is, how can i make it visible again after the page load event?

I am trying to make it visible in OnChangeScript section for a dropdown but setting display or visibility property didnt work for me.

Any suggestion are welcome.