I would suspect this to work at first:
if ($(\'#element\') == $(\'#element\')) alert(\'hello\');
But it does not. How does one test if ele
Or just
if (openActivity[0] == this) alert('hello');
(without a new jQuery instance ;-)