Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do disable an option in drowdown

 
Parul Tripathi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic