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

8th Aug 2019, 12:43 PM
prime omondi
prime omondi - avatar
2 Respuestas
0
var text = yourTag.innerText
8th Aug 2019, 1:19 PM
Qermon
Qermon - avatar
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
8th Aug 2019, 6:24 PM
prime omondi
prime omondi - avatar