$(this).parents("div:first").children();

If you want to print out the IDs and elements, for debugging purposes,
try using Firebug (http://getfirebug.com/) - then you can do something
like this:

console.log( $(this).parents("div:first").children() );

and it'll print out all the elements matched - very handy.

--John

On 3/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 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?
>
> Thanks, - Dave
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to