I need to make a new method for jQuery Validator and don\'t know where to start.
I would like it check that the email entered includes: \'@specificdomain.com\'.
var s="abc@specificdomain.com"; OR var s=value; var split = s.split('@'); var regex = /^([a-zA-Z0-9_.+-])/; var s2="@specificdomain.com"; if(regex.test(split[0]) && s2 == split[1]) return true; else return false;