Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

disabling more than one control

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to disable set or number of controls at one shot?

I tried by putting all the controls b/w <div disabled> and <div>, but it didn't disable any of the control.

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to disable them individually.
 
Krishna Nagadev
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rathi ji,

The following elements only supports 'disabled' attribute:
BUTTON, INPUT, OPTGROUP, OPTION, SELECT, and TEXTAREA.

<Div> in your case doesn't have this property, So set the disable property individually for all the controls which you want as suggested by Bear.

Cheers...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic