Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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: 61224
    
  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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: disabling more than one control