티스토리 뷰


체크 박스 전부 체크 / 전부 해제 코드

$("#table1 #checkall").click(function () {
        if ($("#table1 #checkall").is(':checked')) {
            $("#table1 input[type=checkbox]").each(function () {
                $(this).prop("checked", true);
            });

        } else {
            $("#table1 input[type=checkbox]").each(function () {
                $(this).prop("checked", false);
            });
        }
    });


댓글