You can iterate through the visible items (represented by the
DomElement tableRow) with the following snippet...
<script>
var tableElement = document.getElementById('idOfTable');
for (var i=0;i<tableElement.rows.count;i++){
var rowElem = tableElements.rows[i];
for (var x=0;x<rowElem.cells.count;x++){
var cell = rowElem.cells[x];
//cell is a reference to the cell object from where you can
get the checkbox element
}
}
</script>
Regards,
Tasos
McGeeky wrote:
Hi. Is it possible to iterate through the items in a GridView using
JavaScript on the client?
--
McGeeky
http://mcgeeky.blogspot.com