Match styling of existing error messages

This commit is contained in:
Marcus Moore 2023-11-13 18:54:51 -08:00
parent 0d3589ca24
commit 7098ab6509
No known key found for this signature in database

View file

@ -966,7 +966,16 @@
});
$('#create-form').validate({
ignore: 'input[type=hidden]'
ignore: 'input[type=hidden]',
errorClass: 'help-block form-error',
errorElement: 'span',
errorPlacement: function(error, element) {
element.parents('.required').append(error);
},
highlight: function(inputElement) {
$(inputElement).parent().addClass('has-error');
$(inputElement).closest('.help-block').remove();
},
});