I need to loop over all the rows in a GridView and find all the checkboxes in the row. The GridVew has about 16 pages.
currently I'm using this script:
function SelectAllCheckboxes(value) {
$('#' + '<%=dgForms.ClientID%> tr' ).each(function () {
$(this).find("td input[id*='chkCommon']:checkbox").prop('checked', value);
});
This loops over only the current page rows. That is, if I'm on page 5, only the check boxes on that page will be selected.
How do I get all the rows from all 16 pages? I think I need to get it from the DOM but not sure how.