There are a number of JavaScript modules available online which validates email address. But there are instances when a valid mail address is also invalidated for e.g. some assume all domains end in .com, .net, .edu, or .org; and other invalidate mail ID with a + in the local-part. RFC 2822 (former RFC 822) describes the format of mail address.
So, here's the JavaScript code to validate the e-mail address as per RFC. Please correct it if there are any discrepancies.
function checkMail(emailAdd)
{
var regExobj = /^[-!#$%&'*+/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+/0-9=?A-Z^_a-z{|}~])*@[a-zA-Z](-?[a-zA-Z0-9])*(\.[a-zA-Z](-?[a-zA-Z0-9])*)+$/;
return(regExobj.test(emailAdd));
}