5

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

1 Answer 1

5

Here you go.

errorPlacement: function(error, element) {
            $.jGrowl($(error).text(), {
                sticky:   true,
                life:    12000                    
            });
        }
Sign up to request clarification or add additional context in comments.

2 Comments

thats what i would do. If not, set a variable to ('#frmEcard').validate() and then loop through the errors object and pull your messages out. Use firebug to see what it looks like.
Awesome plug-in, but always seems to takes a lot of my time to configure :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.