Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以前我使用列表显示为选择框。
<select name="chosenList"> <c:forEach> ... </c:forEach> </select>
现在我想显示带有复选框和数据的列表,类似的东西<input type="checkbox" /> This is checkbox <br />。如何实现循环并使用复选框显示每个数据?
<input type="checkbox" /> This is checkbox <br />
不起作用,您可以摆脱复选框并使用
<select multiple> <c:forEach> <option>press ctrl+lmb</option> </c:forEach> </select>
of 循环复选框而不选择
<c:forEach><label><checkbox />clickme</label></c:forEach>
问候