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 ...