G
GIMME
If I have :
<input name="a1" value="1">
<input name="a2" value="3">
<input name="a3" value="2">
And I want the user to enter the values 1,2, and 3 but not
necessarily in that order .... (The user is "reordering" some
objects associated with the application, the actual reordering
occurs on the server side.)
Is there a clean way to have javascript
check that the entered values are 1,2, and 3?
Um ... Is the best and only approach to put all the a* values
in an array and looping to see if all values
have been entered? That works but somehow it
seems like there should something simpler.
Just looking for a tip on how to best proceed ....
Thanks.
<input name="a1" value="1">
<input name="a2" value="3">
<input name="a3" value="2">
And I want the user to enter the values 1,2, and 3 but not
necessarily in that order .... (The user is "reordering" some
objects associated with the application, the actual reordering
occurs on the server side.)
Is there a clean way to have javascript
check that the entered values are 1,2, and 3?
Um ... Is the best and only approach to put all the a* values
in an array and looping to see if all values
have been entered? That works but somehow it
seems like there should something simpler.
Just looking for a tip on how to best proceed ....
Thanks.