Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Check/Uncheck check boxes when All check box is enabled/disabled...

 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have 25 checkboxes, the first is for selcting All. How can I check all other checkbox when all is enabled. And how to uncheck All when anyone other checkbox is disabled by the user. Is there a simple way for this.

Thanks in Advance.

Ananth
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Of course you can make life easy for you by putting all 25 checkboxes in an array and then iterating over the array.
 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any more simpler way as like JCheckBoxHeader?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!