Test if two elements are the same
Solution 1:
As of jquery 1.6 you can now simply do:
$element1.is($element2)
Solution 2:
This should work:
if ($(this)[0] === $(this)[0]) alert('hello');
so should this
if (openActivity[0] == $(this)[0]) alert('hello');