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


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.



Get Source Code

  Views 132   Posted on : Wednesday, March 20, 2013 3:22:02 PM
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.




Also See: