Link to home
Start Free TrialLog in
Avatar of cbradstreet
cbradstreet

asked on

Correct Spellings (i.e., replacing hotmial.com with of hotmail.com, etc.)

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;
etc.

Thanks!

Casey
ASKER CERTIFIED SOLUTION
Avatar of Alopederii
Alopederii

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cbradstreet
cbradstreet

ASKER

Thanks Alopederii!