Ramrakhyani
MIS
View Message Thread (1 reply)
Form validation
From: Rajkumar
Date Posted: 4/24/2002 3:57:00 AM
In a form I have many dates and would like to validate all of them when the
form is submitted.
The date validation function is passed three parameters: Date value, form
number, field number.
It works fine for a form number 0, field number 3 using the following:
<input type="submit" name="submit" value="Save" class="Button"
ONCLICK="return validate(formname.datefield.value,0,3);">
How can I make it work for all the date fields.
One way is that I make one function per Form and then call date validation
function for each date field.
Is there a better way?
Thanks,
Raj