wood burning stoves 2.0*
The moose likes JSF and the fly likes Do disable an option in drowdown Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Do disable an option in drowdown" Watch "Do disable an option in drowdown" New topic
Author

Do disable an option in drowdown

Parul Tripathi
Greenhorn

Joined: May 26, 2007
Posts: 13
Hi, I am using html:select and htmlptioncollections tag for html drowdown. I want a code in javascript that would disable city option in second drop down if city option is selected in first dropdown. document.forms[0].selectProperty[0].disabled = true is not working. Can any please let me know the code
 
 
subject: Do disable an option in drowdown
 
Similar Threads
struts2 select and js
Show the selected value in dropdown again
To disable an option in dropdown
Fetching values from database and populating it in drop down and text fields
jsp and jqeury onchange event for select box