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
});
}
精彩评论