|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
form validation
I have 5 text boxes and user votes from 1 to 5 on a total of five possible golf courses. The user cant vote the same number twice. For example
courseA 1 courseB 2 courseC 3 courseD 4 courseE 5 Correct courseA 1 courseB 1 courseC 3 courseD 4 courseE 5 Incorrect How can I validate this? |
|
#2
|
||||
|
||||
|
well there are many different ways to do so...
if you wanted to take a different approach, you could use buttons insted of textfields, and when someone clicks a button, it calls a function that will record that button number in a array and then disable that button, so the user cant click that button again
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > form validation |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|