开发者

Jquery Validation Plugin, get string of errors

开发者 https://www.devze.com 2023-02-05 13:28 出处:网络
i want to get only the errror messages string, (\'#frmEcard\').validate({ onkeyup: false, onfocusout: false,

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

精彩评论

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