使用jQuery实现复选框的全选 1. [代码] [JavaScript]代码 script type="text/javascript" /**/$(function(){$("#selectAllId").click(function(){$(".itemSelect").prop("checked",this.checked); });});/script
1. [代码][JavaScript]代码
<script type="text/javascript">
/*
*/
$(function(){
$("#selectAllId").click(function(){
$(".itemSelect").prop("checked",this.checked);
});
});
</script>
