Skip to content

byteplant/jquery-email-validator-net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jquery-email-validator-net

A small library providing a wrapper for api.email-validator.net for jQuery

Installation

Download zip, extract and embed jquery.email-validator-net.js to your HTML. This Plugin needs jQuery!

Usage

See test.js and test.html

// Init only once
$.validateEmail("YOUR API KEY");

// OnClick
$("#submit").click(function () {
  $("#email").validateEmail(function (response) {
    console.log(response);
  })
})

//response looks like that:
  {
    status: 200,                      // ==> http://www.email-validator.net/email-verification-results.html
    info: "OK - Valid Address",       // ==> http://www.email-validator.net/email-verification-results.html
    details: "Looong description",    // ==> http://www.email-validator.net/email-verification-results.html
    simpleStatus: "VALID"               // VALID, SUSPECT or INVALID (to keep it simple)
  }

});

Release History

  • 0.1.0 Initial release