¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
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 Respuestas
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