开发者

Jquery Validation Plugin, get string of errors

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                    
            });
        }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜