mercredi 25 janvier 2023

Randomize order of s or s with pure JS on page load

I saw multiple answers to randomize the order of <div> (or <li>s or whatever) using jQuery, but how do I do this using pure javascript?

<ul id="wrapper">
  <li>Answer 1</li>
  <li>Answer 2</li>
  <li>Answer 3</li>
</ul>



Aucun commentaire:

Enregistrer un commentaire