How to check if two elements (held in jQuery collections) are the same?
21:10 12 Aug 2009

I would suspect this to work at first:

if ($('#element') == $('#element')) alert('hello');

But it does not. How does one test if elements are the same?

javascript jquery