[英]How do I use jQuery to omit the “Select All” check box from the list of elements sent to the server?
When the "Select All" check box is used, it also sends that check box and it's value to the server. 使用“全选”复选框时,它还将该复选框及其值发送到服务器。 How do I remove or omit it from the node list before sending it to the server using jQuery? 在使用jQuery将其发送到服务器之前,如何从节点列表中删除或忽略它?
Thank You. 谢谢。
最简单的方法是不给它起一个名字:)
<input type="checkbox" />
Try this: 尝试这个:
$(".checkbox :not[id=chkcheckAll]").each(function(){//what needs to be done});
Assuming the id for Check all checkbox is chkCheckAll. 假设“检查所有”复选框的ID为chkCheckAll。
HTH 高温超导
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.