Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
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 ответов
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