I am just not very good at JavaScript,
here is my latest attempt to filter emails that do not end with @bard.edu
Any advice?
Not sure if my JS is right?
Can't get the, Request JavaScript , to filter email addresses entered in an, email input component. I want the email to fail if the if statement is false, then an alert will show.
JavaScript below
if (/\w+([.-]?\w+)*@bard.edu$/.test.value);
return value;
HELP?