Hi,
> If I find a DIV, through a call
>
> var parentDiv = $(this).parents("div:first");
>
> How do I iterate over the child elements of what I found? Better yet, is
> there a way to print out the child elements and their ID's in one fell
> swoop?
parentDiv.children().each(function() {
var t = $(this);
if( t.id() ) alert(t.id()+': '+t.html());
});
Christof
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
