How can I know if an element is a direct child of the body using jQuery

Posted by DanC on Stack Overflow See other posts from Stack Overflow or by DanC
Published on 2010-06-07T14:27:11Z Indexed on 2010/06/07 14:32 UTC
Read the original article Hit count: 227

Filed under:
|
|

I want to perform some action on elements that are not direct child of the body. How can I check a particular element to know whether its partent is the body.

Thanks!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about dom