See also: fsDate |
Function used to determines whether or not the value in the field is a properly formatted date. If the field does not contain a properly formatted date, then an alert is displayed and focus is returned to the field.
JSV_fvDate(expD [, emptyOK])
n/a
The fvDate function uses the following arguments.
Argument | Description |
expD | The date object. |
emptyOK | Optional. Boolean value that indicates whether the field is mandatory (i.e., not empty). Default value is false. |
n/a
The following lines of code
<FORM NAME="DateForm">
<B>Date:</B>
<INPUT TYPE="Text" NAME="MyDate" SIZE="10" MAXLENGTH="10"
onBlur="JSV_fvDate(this,true);">
<INPUT TYPE="Button" NAME="DateCheck" VALUE="Check">
</FORM>
produce
Enter a date and click the Check button.
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.