JacovT
Junior Member
Posts: 5
Registered: 11/5/2004
Location: Midrand, South Africa
Member Is Offline
|
| posted on 6/15/2005 at 09:48 AM |
|
|
Refer to other elements when validating?
Hello all,
Is it possible, without making things overly complicated, to refer to other elements when validating?
Lets say for instance you want to make sure that the value of a specific element in your form is NOT bigger than the value of another element in the
same form?
Eg:
<input name='e1'>
<input name='e2'>
How can my validation make sure that e2 is not bigger than e1?
I know that you can do password type "matching", but tis will not work for obvious reasons.
I can do it by writing a fucntion, but surely this is also possible using the validator?
Thank you in advance.
---Jaco
|
|
|
|