2013-08-28 80 views

回答

1

你必須觸發更改事件:

$('#chk').prop('checked', true).change(); 
0
if(){ // checked true place... 
    $(this).prop("checked", true); 
    $(this).parent().addClass('ez-selected'); 
}else{// checked flase place... 
    $(this).prop("checked", false); 
    $(this).parent().removeClass('ez-selected'); 
} 
+0

//檢查了真正的地方...... >>仍然不完整。 – toha