This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
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 Software Craftsman this week in the Agile 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: 62307
    
  68

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...
 
 
subject: disabling more than one control