I am using the jQuery validation plugin and it works correctly , but I have a problem checking email. I receive true or false dependant on if email exists or not. However I don't know how to change the state of validation in the form, because I can't pass the validation.
email: {
    required: true,
    email: true,
    remote: {
        url: "checkEmail",
        type: "get",
        success: function(data){
            if (data.msg == true) {
                ///Email avaliable////
                console.log("OK");
            } else {
                /////Email taken///
                console.log("NO");
            }
        }
    },
},
Could anyone help me?
 
     
    