I'm looking to make each list element random instead of all the same.
$(document).ready(function() { var letters = new Array("A", "B", "C", "D", "E"), ran = letters[Math.floor( Math.random() * letters.length )]; $('li').text(ran); });
Aucun commentaire:
Enregistrer un commentaire