javascript - How to make a "Select All" function for one page only -
let's have page 100 checkboxes. used pagination javascript (http://en.newinstance.it/2006/09/27/client-side-html-table-pagination-with-javascript/) break them small pages (each around 10 checkboxes) within same page.
i have created "select all" function 100 checkboxes. thing want create "select all" function 10 checkboxes visible on page on top of that. not sure if knows how it...
you can give groups class each. can use:
var checkboxarray = document.getelementsbyclass('<your class>');
then can cycle through items in array , execute this:
checkboxarray[i].checked=true;
unless i'm mistaken mean, something like should do.
cheers.
Comments
Post a Comment