使用jQuery实现复选框的全选
<script type="text/javascript"> /* */ $(function(){ $("#selectAllId").click(function(){ $(".itemSelect").prop("checked",this.checked); }); }); </script>
来源: https://www.oschina.net/code/snippet_2885429_58655