aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes how to disable if one or more check boxes selected 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 "how to disable if one or more check boxes selected" Watch "how to disable if one or more check boxes selected" New topic
Author

how to disable if one or more check boxes selected

madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
hi,
in my form...i had checkboxes...my problem is if user wants to select one or more checkboxes..if he selects that checkboxes remaining should be disabled....what i done is im disabling each one...here is my code...

modify.jsp



psoAuto.js

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
There is no enabled attribute. There is disabled.

Your code looks like a mess to maintain.

Eric
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
k..in my form..i had checkboxes...suppose 'chk1','chk2,'chk3','chk4'...if i select 'chk1' and 'chk3'....remaining 'chk2' and 'chk4' should be disabled...can you provide me how to do..
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1451
    
    6



Swastik
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
madhuri kunchala wrote:k..in my form..i had checkboxes...suppose 'chk1','chk2,'chk3','chk4'...if i select 'chk1' and 'chk3'....remaining 'chk2' and 'chk4' should be disabled...can you provide me how to do..


Eric Pascarello wrote:There is no enabled attribute. There is disabled.

Your code looks like a mess to maintain.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to disable if one or more check boxes selected