Evaluate form | Validate sport1 select field | Close favorite sport 1 prompt | Close all prompts on form | Update all prompts positions | Build a prompt on a div | Close div prompt | Back to index

This demonstration shows the different validators available

This is a div element
Required!
Field is required :
Placeholder & required
Favorite sport 1:
Function
Write 'HELLO' :
validate[required,funcCall[checkHELLO]]
MinSize
Minimum field size
validate[required,minSize[6]]
MaxSize
Maximum field size, optional
validate[maxSize[6]]
note that the field is optional - it won't fail if it has no value
Past
Checks that the value is a date in the past
Please enter a date ealier than 2010/01/01
validate[custom[date],past[2010/01/01]]
IP Address
IP: