Greetings,
I have an ASP page with a form (form1) that contains a JavaScript validation function that is activated onSubmit. The function contains a series of IF statements to alert the user to any blanks contained in the form elements.
What I want to do is add a new IF statement to the function that checks whether the user has populated a date field (entry_date01) with a date that is in the future. In other words, the user can input the current date (or even a past date) but not a future date.
I know some JavaScript but not enough to code the above function. I would appreciate anyone's help in accomplishing this task.
Regards,
JM
I have an ASP page with a form (form1) that contains a JavaScript validation function that is activated onSubmit. The function contains a series of IF statements to alert the user to any blanks contained in the form elements.
What I want to do is add a new IF statement to the function that checks whether the user has populated a date field (entry_date01) with a date that is in the future. In other words, the user can input the current date (or even a past date) but not a future date.
I know some JavaScript but not enough to code the above function. I would appreciate anyone's help in accomplishing this task.
Regards,
JM
Comment