vendredi 20 février 2015

How to check only certain checkboxes in JSTL c:foreach tag

I have the following code:



<c:forEach var="source" items="${SEARCH_PERSON_RESULTS_KEY}" varStatus="myIndex">


<tr class='<c:out value="${source.customer_id}"/>'> <td style="width: 65px;"><input type="checkbox" name="chksplit" id="chksplit" value='<c:out value="${source.source},${source.source_customer_id},${source.customer_id}"/>' class="splitCheckbox"/></td></tr> </c:forEach>




So there are checkboxes displayed at the webpage using this.What i want to achieve is for the total amount of checkboxes displayed for each source i should be able to select the total amount minus one.





Aucun commentaire:

Enregistrer un commentaire