I have following test checkboxes. A user can select any checkbox in any order. My question is how I can use javascript/jquery to prevent user to select checkbox randomly. I would like user to click first checkbox, than second and so on.
1 <input type="checkbox" name="sports" value="1" /><br />
2 <input type="checkbox" name="sports" value="2" /><br />
3 <input type="checkbox" name="sports" value="3" /><br />
4 <input type="checkbox" name="sports" value="4" />
I need help writing script that would only allows to check each of the chckboxx in order - left to right.
Many Thanks in advance
Aucun commentaire:
Enregistrer un commentaire