JavaScript Examples

JavaScript Menu

Home

  


Date Validation Example



Day:  Month:  Year: 

This code shows an example of validating a date. For February, the code checks whether the years is a leap year. Using the drop down boxes is less error prone than letting users type the date in.