vendredi 31 mars 2017

How to randomly rank each item from a text box

I have text boxes where the user gets to fill them up with names. What I'm trying to do is code in javascript that will Randomly rank these names from 1 to 5.

My friend told me to use "let orderList=....... +resultOrder.string()" but I couldn't get it to work properly.

<form>

    <input type="text"  id="LoverName1" name="name">

    <input type="text" id="LoverName2" name="Name2">

    <input  type="text" id="LoverName3" name="Name3">

    <input type="text" id="LoverName4" name="Name4">

    <input type="text" id="LoverName5" name="Name5">
</form>




Aucun commentaire:

Enregistrer un commentaire