I am using JSTL to dispaly the dynamic data from the session in JSP. I have a problem on making the ID attribute of INPUT tag dynamic. Below is the code.
<table>
<tbody>
<c:forEach var="s" varStatus="r" items="${s.sail ings}">
<tr>
<td class="cell1">
<input type="checkbox" name="pc" id="pc + ${r.count}”
value="${r.coun t}" class="inputChe ckbox jsSelectTour_pc "/>
</td>
</tr>
</c:forEach>
</tbody>
</table>
Please help me on this
<table>
<tbody>
<c:forEach var="s" varStatus="r" items="${s.sail ings}">
<tr>
<td class="cell1">
<input type="checkbox" name="pc" id="pc + ${r.count}”
value="${r.coun t}" class="inputChe ckbox jsSelectTour_pc "/>
</td>
</tr>
</c:forEach>
</tbody>
</table>
Please help me on this
Comment