0

HTML / JAVASCRIPT: How can we let a button generate a random video from a pool of <li></li> within an ordered list?

https://code.sololearn.com/WdXitg835otG/#html Goal: A button that, once clicked, will let ALL contents within ONE random set of <li></li> and HIDE the other sets. In my case, I am putting a video and some text within each pair of <li></li> tags.

19th Sep 2020, 4:36 AM
Solus
Solus - avatar
2 ответов
0
Do you mean to display a random content from a set on click event of button?? Sorry explain your aim a little bit more.
19th Sep 2020, 4:54 AM
Divya Mohan
Divya Mohan - avatar
0
Divya Mohan Essentially like the button on this page: https://random-ize.com/random-youtube/
19th Sep 2020, 6:59 AM
Solus
Solus - avatar