yav - javascript validation tool
Home
Download
|
Support
Documentation
Getting started
Validation rules
Multi-language support
Learn by example
Simple registration form
Notification of changes
Newsletter Sign-up
Captcha
The andor-operator
Pre/Post/Implies rules
Working with the masks
Custom validation
Support
Discussion group
Mailing list
E-mail contact
Example 2
This is a simple notification of changes.
Here you can learn more about date fields and masks. The date fields accepts numbers only.
source
var rules=new Array(); rules[0]='frequency|required'; rules[1]='activation:Activation date|date'; rules[2]='deactivation:Dectivation date|date'; rules[3]='activation:Activation date|date_lt|$deactivation:Dectivation date'; rules[4]='activation|mask|date'; rules[5]='deactivation|mask|date'; yav.addHelp('frequency', 'Provide the frequency of notification you prefer'); yav.addHelp('activation', 'Provide the activation date of the service'); yav.addHelp('deactivation', 'Provide the deactivation date of the service'); yav.addMask('date', ' - - ', '1234567890');
Notification of changes
Frequency:
daily
weekly
monthly
Activation date:
Deactivation date:
Copyright 2005-2008. All rights reserved.