View Single Post
  #4 (permalink)  
Old February 4th, 2005, 06:58 AM
ChrisScott ChrisScott is offline
Friend of Wrox
 
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can perform validation when the form is submitted using the forms onsubmit event...
Code:
<form name="myFormName" onsubmit="return check_date(this.date);">
You will also need to update your function to return true / false depending on whether or not the field passes validation to prevent the form submitting.

HTH,

Chris


Reply With Quote