I want to access selected checkboxes from outside of the grid. Check the attachment. I tried using below code
var array = []
var checkboxes = document.querySelectorAll('input[type=checkbox]:checked');
for (var i = 0; i < checkboxes.length; i++) {
array.push(checkboxes[i].value);
}
But this code skips the values of checkboxes which are on next page or in the scroll down area. I want to access all the checkboxes.