wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes disabling more than one control Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "disabling more than one control" Watch "disabling more than one control" New topic
Author

disabling more than one control

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
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

Joined: Jan 10, 2002
Posts: 61084
    
  66

You'll need to disable them individually.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Krishna Nagadev
Ranch Hand

Joined: Jan 04, 2005
Posts: 32
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...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: disabling more than one control