Javascript Validation Examples
Working with strings
- Check if a character string is a number
- Check if a number is positive
- Check the length of a string, and other String methods
Numbers
- Format a number
Form Input Fields
- Using alert() to check data passed to function
- Validate a single field onChange
- Validate a single field onSubmit
- Validate a form onSubmit
- Validate fields by name
- Validate a form onSubmit with Regular Expressions