Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

formBouncer


Writing jQuery plugins is pretty cool, and fun! Here's my second addition to my plugin repertoire, formBouncer. With just one call to formBouncer, any or all of your forms will be automatically validated before submission (where you will hopefully also run server-side validation).

All that's really needed is to add the appropriate classes to you inputs declare what sort of validation they are subject to. The currently supported validation routines are: required, email, numeric, and confirm. The former three check if the input's value is one present, looks like an email, or is a number. The latter routine matches the input's value with another input with a name of password.

I'll be adding the ability to define custom options for things like the name of the password field to match against, as well as more fine-grained validation routines, and ways of display the error message. As is, the error messages get prepended to the form and slid open.

Usage:

jQuery('form').formBouncer();

Please send me any comments or suggestions! Also check out the project page. I'll be putting it on Git soon as well.

Downloads



5
Your rating: None Average: 5 (1 vote)