Last Updated: February 25, 2016
·
3.001K
· medk

Compare two elements with jQuery

This isn’t enough and will return false:
$(“div#test”) == $(“div#test”)

But this will do the trick:
$(“div#test”)[0] == $(“div#test”)[0]