1. 라디오 박스 원하는 값 체크하고 싶을때
$('input[name="item"]:radio[value="3"]').prop('checked',true);
2. 체크되어있는 라디오박스의 값을 알고 싶을때
$('input[name="item"]:checked').val();
3. 체크되어 있는 모든 체크박스를 해제하고 싶을때
$('input[name="item"]').removeAttr('checekd');
4. 라디오박스가 하나라도 체크되어 있는지 확인 할때
$('input[name="searchitem"]:checked').length;
[출처] (Jquery) radio checked 라디오 제어|작성자 푸른인연
'공부 > javascript' 카테고리의 다른 글
(Javascript) 한글 포함 문자열 길이 (0) | 2015.11.26 |
---|---|
(Jquery) $.post (ajax post) (2) | 2015.11.20 |
(JQuery) css 사용 .css() (0) | 2015.11.10 |
(javascript) history.back() / history.go() (0) | 2015.11.09 |
(javascript) confirm 확인창 (0) | 2015.11.09 |