This must be something I'm overlooking, but please look at the following page and JavaScript and tell me why, for everything that's holy, jQuery won't return true?
HTML: http://alcatel.scottbuckingham.com/reporting/test.html
<p class="test">hello1</p>
JS: http://alcatel.scottbuckingham.com/reporting/_scripts/collapse.js
;(function($, window, document, undefined) {
var t = $('.test');
var s = $('.test');
console.log(t);
console.log(s);
if (t === s) {
console.log('yes');
}
})(jQuery, window, document);
I've literally spent hours trying to work it out and reduced it to this, almost 1 === 1
statement which won't work.
Any help is highly appreciated!