Javascript - Jquery validation for email availabilty, Jquery validation using php n ajax

Jquery validation for email availabilty

How to check if an email is already registered or not?
Check if an email is already registered in jquery validation. For this we use remote attribute in jquery validation plugin

  $(function(){ 
  $("form.signupform").validate({
  rules:{
  email:{
  required:true,
  email:true,
  remote:{
  url:"email-not-registered.php",
  type:"post"
  }
  }
  },
  messages:{
  email:{
  remote:"This ID is Unavailable. Choose another."
  }
  } 
  }); 
  });

 <?php
  function isEmailRegistered{
  //check email registered or not
  }

  if(isEmailRegistered()){
   echo "false";
  } else{
   echo "true";
  }
 ?>

The topic on Javascript - Jquery validation for email availabilty is posted by - Guru

Hope you have enjoyed, Javascript - Jquery validation for email availabiltyThanks for your time

Tech Bluff