File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Check All button for all spring check boxes array

Darvesh Niz
Ranch Hand
Posts: 121
  • 0
  • 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
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic