iterate through html table rows with jquery to get div id inside cells

This forum was posted on Wednesday, March 20, 2013 3:22:02 PM

i require to iterate thru every cell in every row in a table id="myTable" and get the ids of the cells' child divs.
So far I hv something like:
$("td.theCell").every(function() {
var id = $(this).attr('id'); //this would give me the td id but i need it is child div's id
});

my html is like:

foo
bar


foo
bar
foo
foo



Does somebody know a best approach to do this? Thank You in advance.



 Views 221 Get Source Code >>
Related Tags:




Replies on "iterate through html table rows with jquery to get div id inside cells" :

Nobody has replied on this post , be first to post answer.


Post Your Answer/Comment:

Please Login first to post Reply !


Note: Please Put Code into <code></code> block.

Threads related to "iterate through html table rows with jquery to get div id inside cells":