I suppose that maybe you could do a .each() over the jQuery object and test
it that way. 

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Adrian Lynch
Sent: Thursday, October 11, 2007 7:15 AM
To: jQuery (English)
Subject: [jQuery] jQuery object equality


Am I right in thinking that you can't test for equality of jQuery objects?

alert($("#saveForm") == $("#saveForm")); // false
alert($("#saveForm") === $("#saveForm")); // false
alert($("#saveForm").get(0) == $("#saveForm").get(0)); // true
alert($("#saveForm").get(0) === $("#saveForm").get(0)); // true

Instead I have to drop out of jQuery and test the elements directly.

Am I missing something maybe?

Adrian


Reply via email to