jquery-object

jQuery .each() returns DOM element and not a jQuery object

I could be misunderstanding what is happening but from what I can tell I am getting a DOM element and not a jQuery object when I use .each(). The below will not work as this refers to a DOM element and not a jQuery object $("span[id$='_TotalItemCost']").each(function() { var someText = this.text(); }); Modified to transform this ...

jQuery object equality

How do I determine if two jQuery objects are equal? I would like to be able to search an array for a particular jQuery object. $.inArray(jqobj, my_array);//-1 alert($("#deviceTypeRoot") == $("#deviceTypeRoot"));//False alert($("#deviceTypeRoot") === $("#deviceTypeRoot"));//False ...