[Jquery] - Jquery CheckBox 전체 선택
Jquery & Mobile 2014. 4. 11. 10:26반응형
function MRKN_CheckBoxAllChecked() {
var chkBox = $("#Content .searchArea table ul[name=affiliation] li input[name='tree[]']");
var checked;
if(chkBox.eq(0).prop("checked")) {
checked = false;
} else {
checked = true;
};
chkBox.each(function(){
var $this = $(this);
$this.prop("checked", checked);
});
}
반응형
'Jquery & Mobile' 카테고리의 다른 글
| [CSS] - iPhone 사파리 스크롤 바운스 막기 (2) | 2016.06.10 |
|---|---|
| [Jquery] - .load() 함수 사용시 익스플로러, 크로스도메인 사용지 동작안될때 (0) | 2016.03.11 |
| [Mobile] - 모바일 웹 메타 태그 (0) | 2013.09.26 |
| [Jquery] - Replace 사용시 참조 (2) | 2012.04.30 |
| [JqueryMobile] - Jquerymobile 모바일에서 이미지 가로 세로 비율별 리사이징 예제 (4) | 2012.03.29 |