This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Spring and the fly likes Check All button for all spring check boxes array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Check All button for all spring check boxes array" Watch "Check All button for all spring check boxes array" New topic
Author

Check All button for all spring check boxes array

Darvesh Niz
Ranch Hand

Joined: May 12, 2008
Posts: 119
Hello
Implementing an array of checkboxes in spring is pretty tedious. i have a array of checkbox which i used to display months and a user can select mulitple months.
i want to implement check all functionlity when a user checks it all months are selected.

below is the code snipped i used in my form


and the check boxes are being rendered as



This is the java script function i wrote and this is the form declaration
<form:form name="newTour" action="new-tour.html" modelAttribute="tour" method="post">



any help
Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

http://stackoverflow.com/questions/386281/how-to-implement-select-all-check-box-in-html


===Vyas Sanzgiri===
My Blog
 
 
subject: Check All button for all spring check boxes array