Form.Check: Great Form Validation for MooTools

650 views

Form validation is one of those problems that every IT developer has to deal with at one point or another. Form.Check is a MooTools plug-in library for dealing with client-side validation easily:

window.addEvent('domready', function(){
        new FormCheck('formular', {
                display : {
                        errorsLocation : 1,
                        indicateErrors : 2
                }
        })
});

FormCheck is a Mootools plugin that allows to performs different tests on forms and indicates errors. It works with input (text, radio, checkbox) fields, textarea and select boxes. You just need to add a specific class to each fields you want to check. You can perform check during the datas entry or on the submit action, shows errors as tips or in a div before or after the field, show errors one by one or all together, show a list of all errors at the top of the form, localize error messages, add new regex check and etc…

Requirements: Mootools framework
Demo: http://mootools.floor.ch/en/labs/formcheck/forum-registration/index.htm
License: MIT License

Posted by  Ben Galbraith – Ajaxian and Ray Cheung - Webappers.

Related Posts with Thumbnails


Leave a Reply