jQuery checkbox的全选与反选

1:checkbox的全选与反选

js 代码

$("#cbAll").click(function(){
            if($("#cbAll").is(":checked")){
            $("[name='subBox']").attr( "checked", true ).checkboxradio( "refresh" );
            }else{
            $("[name='subBox']").attr( "checked", false ).checkboxradio( "refresh" );
            }    
        });
原文地址:https://www.cnblogs.com/dreamzcy/p/4744263.html