0
我想使用JSTL标记来显示在page.Please记录列表请参见下面我的代码来从row.I'm选定的复选框行文本值...如何从行中获取选定的复选框值?
<c:forEach items="${list}" var="product">
<td><input type="text" value='${product.featurename}' name="featurename" readonly="readonly"/></td>
<td><input type="text" value='${product.featureversion}' readonly="readonly"/></td>
<td><input type="text" value='${product.end_date}' readonly="readonly"/></td>
<td><input type="text" value='${product.new_end_date}' class="datepicker" /></td>
<td><input type="checkbox" value='${product.new_end_date}' name="new_end_date" class="selectedId"/>
</c:forEach>
java类:
String[] newenddate = req.getParameterValues("new_end_date");
jQuery的为全选
$('#selectall').click(function(i, v){
$('.selectedId').prop('checked', this.checked);
});
var checkCount = $('.selectedId').length;
$('.selectedId').click(function(i, v){
$('#selectall').prop('checked',$('.selectedId:checked').length == checkCount);
});
});