How would you compare jQuery objects?
Posted
by Kyle
on Stack Overflow
See other posts from Stack Overflow
or by Kyle
Published on 2010-03-13T01:58:19Z
Indexed on
2010/03/13
2:07 UTC
Read the original article
Hit count: 279
So I'm trying to figure out how to compare two jQuery objects, to see if the parent element is the body of a page.
here's what I got:
if ( $(this).parent() === $('body') ) ...
I know this is wrong, but if anybody understands what I'm getting at, could they point me towards the correct way of doing this?
© Stack Overflow or respective owner