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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e43b84-663f9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e43b84-663f9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?