I am working on a project in CodePen editor. My problem is: How to change the text of a element each time a hit the button ?
I have an array from which I am displaying random text on a div.
Thanks!
I am working on a project in CodePen editor. My problem is: How to change the text of a element each time a hit the button ?
I have an array from which I am displaying random text on a div.
Thanks!
2
Answers
This is for single text change. Not for array.
Try this: