c# - How to make a dropdownlist disabled depending on second dropdownlist -


i having 2 dropdownlists , in 1st if select country populated corresponding states want grey out second ddl , display message select state in it. how can achieve this? not using ajax this.

why don't temporary disable on server side?

ddl2.enabled = false; 

or better this, on first changed, check state, if smth choosen, enable secondary ddl.

ddl1_onselectedindexchanged(object sender....) {     if (ddl1.selectedindex != 0)         ddl2.enabled = true; } 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -