i want to get only the errror messages string,
('#frmEcard').validate({
onkeyup: false,
onfocusout: false,
onsubmit: false,
ignoreTitle: true,
rules: {
'txt_sendto': "multiEmails",
'txt_subject': {
maxlength: 255
},
'txt_message': {
maxlength: 500
}
},
errorPlacement: function(error, element) {
$.jGrowl(HERE , {
sticky: true,
life: 12000
});
}
});
Here you go.
errorPlacement: function(error, element) {
$.jGrowl($(error).text(), {
sticky: true,
life: 12000
});
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With