My question is:
How do I integrate the messages in Jquery.Validator () with the modal windows of the SmartNotification.js plugin? I would like, when inputs to enter roles of JQuery validators , a message is displayed via SmartNotification.js. I'm not able to integrate the two to do a forms validation - in other words make a standardized "crud".
Here's my SmartNotification.js function example, it's just called by Jquery.Validator ():
function PrintAlert(alert) {
$.SmartMessageBox({
title: '<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i> Aviso!',
content: '<div style="margin:10px 0px 0px 5px;">' + alert + '</div>',
buttons: '[Voltar]'
});
}
Jquery.Validator that I want to implement for example:
jQuery('.myform').validate({
rules: {
password: {
required: true,
minlength: 5
},
password_confirm: {
required: true,
minlength: 5,
equalTo: "#password"
}
}
});
As an implement, I tried but when the message came from SmartNotification.js even if I clicked the back button it appears it does not come out understand it was on the screen I tried to put return (false)
and nothing, I believe there is some way.
Here is an example of the SmartNotification.js modal:
Thank you in advance for anybody who has an example or can help.