when i click check all all the records is selected even in the next page records(in javascript table) -
i showing checkbox,article title,description,status in table(using javascript table sorting etc)
when have 20 records,the table display 10 records per page,when click checkall records selected i.e 2 page records selected...
i want ,when click checkall 1 page showing should checked...
how in javascript?
my script checkall this
function checkall(){ $("input[type='checkbox']").each(function(){ if (this.checked == false) { //$("input[type='checkbox']").attr('checked', this.checked); this.checked = true; $("#checkall").val("uncheck all"); } else { this.checked = false; $("#checkall").val("check all"); } }); }
try this:
$("input[type='checkbox']:visible")
to select visible check boxes
Comments
Post a Comment