I have a modal with my inputs, I use jQuery.Validate to check my form on submit, my problem is when I close modal and then I open the modal messages again from validation, so my question is: how can I reset or hide these messages when closing a modal?
I tried with this but didn't work
$('#myModal').on('hidden.bs.modal', function () {
window.alertas.reset();
});
How can i solve this?
Here is a sample code to play.
user6446331
source
share