mardi 26 janvier 2016

Choosing a random function

else {
    alert('That was wrong!')
    alert('Too bad, try again!')
}

I want the else to pick a random alert, for example if I have the answer wrong it pick a random alert and if I have the answer wrong again I want it to pick another random alert. How do I do this in jquery? Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire