Closed vivekmyself closed 5 years ago
Same here
I believe this is occurring because this plug-in makes the
I think this causes more problems for validate, as well, though. I find myself having to write a custom errorPlacement handler, too, so that it goes under the button created by the multiselect plug-in.
For example:
$("#search").validate({
errorPlacement: function(error, element) {
var possibleButton = element.siblings("button");
if (possibleButton.length == 1) {
element = possibleButton;
}
element.after(error);
// Taking advantage of some Twitter bottstrap stuff.
// You'll have to manually remove this if you do something like this.
element.parent().wrap('<div class="control-group error"></div>')
},
ignore: ".ignore"
});
I have found the same issue. Has anyone been able to solve the problem with the error message not fading away?
Does my solution above not work?
I'm going to close this one due to age.
I tried to validate the your jQuery multiselect plugin using jquery.validate.js . Its working properly for validation, but its not removing the error message.
For example if it a required field. Without selecting any option when I tried to submit, it shows the error message 'This is required'.
The problem is when I select any options from the multiselect, the error message is not removed. Still its shows the error message. I tried using without the Jquery plugin its working properly.
How can I remove the error message in the above scenario.
Thank you
Vivek