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 have:
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?
var $parent = $(this).parent(), $body = $('body');var theSame = $parent.is($body);api.jquery.com/is/#is-jQuery-object