How about a Compare() function ?
I have looked alot but I haven't found anything to compare two or more objects if they are the same or not...then return bool (true,false).
<div>ABC</div>
<div>ABC</div>
<div>ABC</div>
<div>abc</div>
var d1 = '';// reference to first div
var d2 = '';//reference to second div
var d3 = '';// reference to third div
var d4 = '';//reference to fourth div
jQuery.compare(d1,d2);// return true
jQuery.compare(d3,d4);// return false
the compare function should compare an object or an html element if they are equally the same or not.