• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to disable if one or more check boxes selected

 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no enabled attribute. There is disabled.

Your code looks like a mess to maintain.

Eric
 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1604
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic