Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

how to disable if one or more check boxes selected

 
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

 
author
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..
 
Bartender
Posts: 2265
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Eric Pascarello
author
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

 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic