I am using jquery 1.11.1 and this is my code:
$(\"#rowchkall\").change(function(){ if($(this).is(\':checked\')){ $(\"input:checkbox[class=rowchk]
Try to use .prop() instead of .attr()
$("#rowchkall").change(function(){ $("input:checkbox[class=rowchk]").prop('checked', this.checked); });
And you don't need to iterate over all the elements to change its property.
iterate