Getting the content of an element in js is not the same as it is displayed.

Getting the content of the element in

js is not the same as it is displayed.

console.log(this.children(this.children(item.parentElement,"item-detail")[0],"item-count")[0])
console.log(this.children(this.children(item.parentElement,"item-detail")[0],"item-count")[0].innerHTML);

Mar.12,2021

I see. You changed the value of the element after console.log, so the console.log element will display the modified element


with the same class class name

.
Menu