how to combine the error message from jquery validation
        Posted  
        
            by 
                aon
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by aon
        
        
        
        Published on 2014-08-19T04:14:20Z
        Indexed on 
            2014/08/19
            4:20 UTC
        
        
        Read the original article
        Hit count: 226
        
jQuery
|jquery-validate
how to combine the error message from jquery validation. for example:
messages: {
    first_name: { required: "Please enter your first name." },
    email: {
         required: "Please enter a valid email address.",
         remote: "Email has been registered."
    },
    username: {
         required: "Please enter username.",
         remote: "Username has been registered."
    }
 },
Desired message will be like this:
Please enter your first name, a valid email address and username
or
Please enter your first name and username, email has been registered etc.
© Stack Overflow or respective owner