Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
How can you clone inner text in javascript.Not the node. Or maybe copy it so that you can use the copy instead of the original
2 Antworten
0
var text = yourTag.innerText
0
I managed to access the inner text of the div element.Then created a text node using the accessed inner text and cloned the text node itself.It works.Yay