+ 2

How I random a text in html without jquery?

I want to multiple text in a box for my webpage. how i random a text in html without jquery? Guys Any simple idea??

10th Jan 2018, 8:27 PM
Wamiq Usmani
Wamiq Usmani - avatar
4 Answers
+ 7
Here the code that illustrates picking a random text from array to DOM element. https://code.sololearn.com/WKWhJRdvQvkB/?ref=app
11th Jan 2018, 3:24 AM
CalviŐČ
CalviŐČ - avatar
+ 3
HTML all forms of your text. Use CSS to hide them all. JavaScript to randomly pick one and modify style to show it.
10th Jan 2018, 8:54 PM
John Wells
John Wells - avatar
+ 2
thank you John. 👍
11th Jan 2018, 5:01 AM
Wamiq Usmani
Wamiq Usmani - avatar
+ 1
thank you Calvin
11th Jan 2018, 5:02 AM
Wamiq Usmani
Wamiq Usmani - avatar