VM Form Validator

MooTools Plugin - Vm Form Validator

VMFormValidator is a JavaScript form validation script based on MooTools 1.3. It aims to provide simple, reliable validation for all form element types across all browsers in an unobtrusive manner. It is 100% styled by CSS and allows for custom validations and error messages. Error messages can be displayed above the form, above each input, or below each input. VMFormValidator should not be used as a replacement for server-side validation (using PHP, .NET, etc) because JavaScript can be disabled.

License

VMFormValidator is released under the open-source MIT License.

Features

  • Simple out of the box
  • Unobtrusive - requires no changes to existing (X)HTML markup
  • Degrades gracefully
  • Cross browser - tested in Internet Explorer 7+, Firefox, Safari, Opera, and Chrome
  • Validates every type of form element
  • Customizable styling - 100% CSS styling. The label and form element both have error and success states and the error list can also be styled
  • Customizable errors - each error can be customized with your error message text
  • Customizable error positioning - errors can appear above each form element or below it
  • Multiple validations per element - validations are fired in expected order in all browsers including Internet Explorer
  • Display either one or multiple errors per element at a time
  • Multiple forms can be validated per page
  • Validates on blur and on submit with the option to turn either off
  • Optional disabling of the submit button on error
  • Intelligent cross-browser radio button validation - no false errors
  • Includes the most common validations including required fields, email, password, url, dates-25 validations in total
  • Custom regex validation - you can enter your own regex for the script to evaluate
  • Custom functions - include custom functions to be run with onblur/onsubmit validation
  • 19kb uncompressed, 9kb compressed

Dependencies

VMFormValidator requires the MooTools JavaScript framework. Specifically, it requires the complete MooTools Core (but not MooTools More) file.

GitHub

You can follow VMFormValidator on GitHub.

 

Copyright 2011 Virtuosi Media Inc.