jquery实现checkbox全选反选
<script type="text/javascript">
$(function () {
$("#allcheck").click(function () {
if ($("#allcheck").attr("checked")) {
$("#jobtable").find(":checkbox").each(function () {
if ($(this).attr("id") != "allcheck")
$(this).attr("checked", true);
});
} else {
$("#jobtable").find(":checkbox").each(function () {
// if ($(this).attr("id") != "allcheck")
$(this).attr("checked", false);
});
}
});
});
</script>