Last active — forked from ijason/bootstrap-validation.js

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Updated for bootstrap 3 and made it more simple

View bootstrap-validation.js
1 2 3 4 5 6 7
$('form').submit(function () {
$('.valid').parent('div').parent('.form-group').addClass('has-success');
$('.input-validation-error').parent('div').parent('.form-group').addClass('has-error');
$('.validation-summary-errors').addClass("alert alert-danger");
$('.validation-summary-errors').find("ul").addClass("list-unstyled");
$('.validation-summary-errors').removeClass("validation-summary-errors");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.