I tested for hours different codes for moving the DOM.
$(element).children('.classelement').each(function(){
alert(this)
alert(this.lastChild)
});
Why this.lastChildreturns object Text? If it thisreturns a DOM object, why lastChildnot?
And after I have the following question: what object returns thisinside a .each?
What should I do to get the DOM object in this case?
source
share