Blah
I want to set $(\'#
$(\'#
I think what you are looking for is the following
if (jQuery.contains($('#example'), $('#test')) { $('#another').hide(); }
This might work as well, not sure off the top of my head.
if ($('#test', $('#example')).size() > 0) { $('#another').hide(); }