id为
<td>id <input type="checkbox" id="ids" onchange="selAll()"> </td>
获取的id为
<td>${f.ddid} <input type="checkbox" value="${f.ddid}" name="id"> </td>
实现的单击方法为
function selAll(){
$("[name=id]").each(function(){
$(this).prop("checked",$("#ids").prop("checked"))
})
}