선택항목 개수 체크하는 스크립트 수정

This commit is contained in:
chicpro
2013-02-18 16:56:12 +09:00
parent 6aaa395aa2
commit 356c388eaf

View File

@ -194,10 +194,8 @@ $colspan = 5;
<script>
$(function() {
$('#fauthlist').submit(function() {
var cnt = $('input[name^=chk]:checked').length;
if(cnt < 1) {
alert('삭제할 권한 내역을 1개 이상 선택해 주세요.');
if (!is_checked("chk[]")) {
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
return false;
}