Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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