Loop through tables last row and set the data cell values. -1. Loop through gridview rows and access each row's element by jquery. 346. jQuery to loop through elements with the same class. 0. looping through hidden fields within a php while loop that are in a table row.