<!--全选功能--> <script> $(".checkall").click(function(){ if($(this).attr("checked")=="checked"){ $(".checkitem").each(function(){ $(this).attr("checked",true); }) }else{ $(".checkitem").each(function(){ $(this).attr("checked",false); }) } }); </script>
jQuery全选功能
最新推荐文章于 2023-03-01 11:06:28 发布