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" );
}
});
2023-08-30 11:39:04
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" );
}
});