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" ); } });