Jquery验证插件,获取错误字符串
16lz
2021-01-22
i want to get only the errror messages string,
我只想获得errror消息字符串,
('#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
});
}
});
1 个解决方案
#1
5
Here you go.
给你。
errorPlacement: function(error, element) {
$.jGrowl($(error).text(), {
sticky: true,
life: 12000
});
}
更多相关文章
- JQuery攻略(三)数组与字符串
- 如何确定在web页面上呈现的字符串的长度(以像素为单位)?
- 具有不间断空格的呈现字符串
- js字符串与html代码互相转换时怪想法:自己解析js字符串成普通字
- iOS:从NSString中删除(一个html字符串)
- JQuery查找并更改字符串的样式
- 如何截取html的子字符串作为内容摘要
- 如果字符串包含html代码,如何用python检测?
- html2canvas 识别 svg 解决方案