Skip to content

KeywordDomains/validatrrr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

validatrrr

Really simple jQuery Form Validation PlugIn

Usage Example

$('#contactForm').validateForm({'name': ['required'], 'email': ['required', 'validEmail'], 'notice': ['required']}, function(form) {
    $('.loading').show();
    $('#submit').attr('disabled', true).hide();
    $.post(form.attr('action'), form.serialize(), function(data) {
        $('.loading').html('Ihre Nachricht wurde an uns verschickt. Wir werden uns so schnell wie möglich bei Ihnen melden');
    });
}, function(form, errors) {
   // Loop through the errors and process them here
   var errorDiv = $('<div></div>');
			
    for(var i = 0; i < errors.length; i++) {
        errorDiv.append('<p>' + errors[i] + '</p>');
    }
    form.prepend(errorDiv);
});

About

Really simple jQuery Form Validation PlugIn

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published