2개다결과는 같다
체크 : true
체크안함: false
$('input:checkbox[id='testId']').is(":checked"));
$('#testId').prop("checked");
http://api.jquery.com/is/
.is() : 속성이 존재하면 true or false
Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.
댓글 없음:
댓글 쓰기