//根据ID选中
$("#checkAll").attr("checked", "checked");
//根据name选中
$("input[name='checkAll']").attr("checked", "checked");
//根据ID取消选中
$("#checkAll").removeAttr("checked");
//根据name取消选中
$("input[name='checkAll']").removeAttr("checked");
欢迎光临 苏飞论坛 (http://www.sufeinet.com/) | Powered by Discuz! X3.4 |