You can't redeclare myArray. That's overwriting (shadowing, technically, but in practice the same as overwriting) the whole list you loaded, so you're back to the original list.
This dual declaration
var myArray = ["yahoo.com", "hotmail.com", "live.com", "aol.com", "msn.com", "outlook.com", "gmail.com"],
errorFreemail = "Must be Business email.";
needs to be only
var errorFreemail = "Must be Business email.";
and with this update now even the ones i listed out that did work don't work any more (yahoo.com etc)
It does block the ones in the original list, not sure what you mean here.
... View more