This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 60760
    
  65

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
 
Similar Threads
Sort Div Ids
disabling windows close icon
how to disable a div in firefox?
Creating CSS class at runtime
How to get Full Form Id?