How to use remote validation in JQuery?

 As per below example, we can use the remove validation into JQuery:

email: {

remote: {

type: "POST",

url: 'http://test.domainname.com/check_email.php',

dataType: "json",

beforeSend: function () {

                                // set loading image

},

complete: function () {

                                // hide loading image

},

data: {

'email': function () {

return $('#email').val()

}

}

}

}

Here, "check_email.php" is your remote file where you will verify the email. Which exist or not to your particular database table

Comments

Popular posts from this blog