JavaScript Form Validation Framework

The JavaScript code is freely available for download on code.google.com/p/javascriptformvalidation/
Home | Download | Demo | Instructions | Why use JavaScript Form Field Validation? | How can you help? | Members

Form Field Validation Demos

  1. Basic form field validation
  2. Form field validation with custom error
  3. Form field validation with custom error handler
  4. Form field validation with XML file as definition or also known as AJAX Form Validation

The following demonstrates how you validate a form field and output the error as a custom error in a div that can be styled however you like.

Try it!

Enter nothing in the business name and submit the form, enter 1 character in the business name and submit the form, enter more than 40 characters in the business name and submit the form. Enter anything other than a digit in the postcode field and submit the form.

Business name

Postcode


The code below can be copied and pasted on your own page for testing and should work as is.

Please note that we have limited the demo to two form fields to keep it readable.


Comments

Add new comment


anthony
mwendwak@gmail.com

Jul 31, 2009 5:48 PM

hi, i couldnt get the validation to execute. i copied the files to my webserver but on submitting my form, mozilla error cconsole tells me 'pacificfox' not defined! what could be the problem? thanks

Donna

Apr 9, 2009 11:13 AM

Can I write my own custom handlers for this framework?

Comments are moderated

Leave a comment on this page, feedback or code improvement

yes no

http://

yes no

Sponsored by clickfind - Advertise your Business online

About us | Advertise online | Add my business | Contact us | Search engine reports | Site map | News media
Business directory | Article directory | Get driving directions | Developers directory Form Validation | Our blog
Terms & conditions | Privacy policy | Refund policy | © 2012 clickfind Pty Ltd
conversion optimization