Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML select tag disabling particular elements?

 
Rohit Nath
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using the HTML select tag with multiple="multiple" to allow multiple selection. I need to disable the second element. I am able to enable/disable the complete multiselect box but I need to enable particular element. Any idea how we can do that? Need help urgently.

Thanks in Advance!
Rohit
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it ever going to be able to be selected? You probably will have to code some JavaScript with onchange. If it is picked you unselect it.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic