Jquery & Mobile
[Jquery] - Jquery CheckBox 전체 선택
Vivara
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);
});
}
반응형