Possible duplicate:
How to iterate over table rows using jQuery and access some cell values?
I have something like:
<table id="tblOne"> <tbody> <tr> <td> <table id="tblTwo"> <tbody> <tr> <td> Items </td> </tr> <tr> <td> Prod </td> </tr> </tbody> </table> </td> </tr> <tr> <td> Item 1 </td> </tr> <tr> <td> Item 2 </td> </tr> </tbody> </table>
I wrote jQuery to scroll each tr as:
$('#tblOne tr').each(function() {...code...});
But the problem is that it goes through "tr" from "tblTwo", which I don't want. Can someone suggest something to solve?
javascript jquery html-table each tablerow
ANP May 03 '12 at 13:04 2012-05-03 13:04
source share