[jQuery] Selecting a table cell based upon it's header?
Hi All,<div>
</div><div>Hopefully this is a stupid question, and I just haven't been able to find information about it. </div><div>Given a table, with headers at the top. I want to loop through the rows of the table (easy), and loop through the elements of each row (easy), and based upon the values of those elements, construct a URL.</div>
<div>
</div><div>If I set the headers as <th scope="col">Property Name</th>, is there any way to then select the cells according to their header name? </div><div>
</div><div>In theory, I guess I could first loop through the non header rows, assigning each cell a classname according to the header row, and then when I process each row to construct my url, I can select it according to the classname. ... but it seems that there should be a better way.</div>
<div>
</div><div>Any ideas?</div><div>
</div><div> Josh</div>