I have a form where user enters their email address. The problem is, sometimes user mistakenly enters incorrect domain name spelling i.e., hotmial.com instead of hotmail.com. I am hoping an expert can provide me with some JS which will automatically change incorrect spellings (which would be defined in script so that I can add a bunch of them) using onChange event.
For exmaple, JS would include something like:
IF hotmaol.com, replace with hotmail.com;
IF hotmal.com, replace with hotmail.com;
IF hotmial.com, replace with hotmail.com;
IF yaho.com, replace with yahoo.com;
IF ail.com, replace with aol.com;