The administration panel and web client for ParEdu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
681 B

4 years ago
$(function () {
$('#sign_up').validate({
rules: {
'terms': {
required: true
},
'confirm': {
equalTo: '[name="password"]'
}
},
highlight: function (input) {
console.log(input);
$(input).parents('.form-line').addClass('error');
},
unhighlight: function (input) {
$(input).parents('.form-line').removeClass('error');
},
errorPlacement: function (error, element) {
$(element).parents('.input-group').append(error);
$(element).parents('.form-group').append(error);
}
});
});