검색결과 리스트
글
jquery checkbox 체크박스 및 라디오버튼 간단히 체크 상태인지 확인
js API/jquery
2012. 5. 4. 22:55
jQuery를 이용해 checkbox 또는 라디오버튼이 체크 상태인지 확인 하는 심플 방법
< html > < input type="checkbox" id="isemail" value="Y" /> < /html> < script> $('#isemail').click(function (){ if( $(this).is(':checked') ){ //true alert('true'); }else{ alert('false'); } }); < /script>
'js API > jquery' 카테고리의 다른 글
checkbox 전체 선택 및 해제 또는 클릭이벤트에 따른 해제(undersocrjs) (0) | 2015.08.07 |
---|---|
id 값이 존재 하는지 체크 하기 (0) | 2012.06.18 |
jQuery ajax와 콜백 callbacks 활용하기 (0) | 2012.04.30 |
jQuery select 셀렉트 메뉴 onchange 이벤트 (0) | 2012.04.29 |
jQuery 특정 자바스크립트 로딩 후 실행 하기(동적 스크립트 로딩 및 액션) (0) | 2012.04.27 |