File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60053

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:

<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.

I agree. Here's the link:
subject: disabling more than one control
Similar Threads
disabling windows close icon
how to disable a div in firefox?
How to get Full Form Id?
Sort Div Ids
Creating CSS class at runtime