Form validation
This script is currently in development.
As such, it has not been completely debugged and is not recommend for
serious use.
I am working on a new version,
specifically reworking the CSS rules I use for displaying forms.
- Latest Release
- N/A
- Download
- Source Code
Validation handling features
- Data type entry (integer, percentage).
- Email address validation (simple).
- Required fields check onsubmit.
- Maxlength counter and limit for
input and textarea fields.
- Triggers all onchange handlers after a form reset.
- Register errors for form and individual controls [beta].
- Debug mode for testing forms.
Requirements
- Form element and all controls must have an
id attribute.
- Controls must follow layout template (fieldset, div, label, …) [to be documented].
- Some configuration required in
body.onload event.
Example form