0
How do I change the content of a div element.
I have a text in div element and want to add for instance letters to left and right sides using set timeout method ?
1 Réponse
+ 2
Create a function to get the current text (innerHTML) of the element, then add new strings to its left or right, then put the new text back to the element. Call the function in the setTimeout function.
Sorry if I misunderstood your point.