$(".check_class").click(function() {
$(".check_class").attr("checked", false); //uncheck all checkboxes
$(this).attr("checked", true); //check the clicked one
});$(function() {
$('input[type="checkbox"]').bind('click',function() {
$('input[type="checkbox"]').not(this).prop("checked", false);
});'Programming > JavaScript' 카테고리의 다른 글
| 이미지 미리보기 소스2 (0) | 2014.09.22 |
|---|---|
| document.selection.createRange 안될때 [출처] document.selection.createRange 안될때 |작성자 검색신 (0) | 2014.09.19 |
| jquery로 관람차 만들기 (0) | 2014.08.19 |
| [jQuery] enterKey 막기 (0) | 2014.08.06 |
| [jQuery] $.unique() , $.inArray() ,$.makeArray() (0) | 2014.07.04 |