I am using jquery 1.11.1 and this is my code:
$(\"#rowchkall\").change(function(){ if($(this).is(\':checked\')){ $(\"input:checkbox[class=rowchk]
$("#rowchkall").change(function(){ if($(this).is(':checked')){ $("input.rowchk[type=checkbox]").each(function() { alert("set checked"); $(this).attr('checked',true); }); }else{ $("input.rowchk[type=checkbox]").each(function() { $(this).attr('checked', false); }); } });