Test if two elements are the same January 20, 2023 by Tarik As of jquery 1.6 you can now simply do: $element1.is($element2)