I have a table (id=”docsTable”) whose rows look similar to this:
<tr bgcolor="#E7DDCC">
<td align="center"><input type="checkbox" name="docsToAddToClass[]" value="35" /></td>
<td>Document Title</td>
<td>Document Description.</td>
</tr>
I need to iterate through the table, determine which checkboxes the user has checked, and for the rows with a checked checkbox, grab the value for the first and the text for the next two.
I don’t need to build a collection: Within each iteration I want to change some elements elsewhere. That’s not the hard part (for me). It’s trying to figure out how to iterate through the table and select only the s with checked checkboxes.
1 Answer