Dojo for Hiding/Showing a Dropdown based on the value selected in another Dropdown

Vote:
 

There are two drop downs. One with a list of Categories and another with a list of cities. 

The city drop down should be displayed only if Category1 is selected. 

The city drop down should be hidden if any other category is selected from the Categories drop down. 

I am trying to write a dojo script to achieve the same by referring this article:

http://world.episerver.com/Blogs/Duong-Nguyen/Dates/2014/1/Country-Region-drop-down-lists-in-All-properties-mode/

could you please help me in this..?

#148613
May 18, 2016 12:33
Vote:
 
#148614
May 18, 2016 12:55
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.