This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Check All button for all spring check boxes array

Darvesh Niz
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 686
Chrome Netbeans IDE Ubuntu
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic