I get an alert telling me the address needs to contain only alpha numeric chars..
What i have for the regex is /^\w+$/
so when i put 123 Lane Street
it gives me that error. Any ideas why it's doing this?
if (address == ""){
errors += "please enter a address \n";
} else {
addressRE = /^\w+$/;
if (address.match(addressRE)){
//console.log("address match");
//do nothing.
} else {
//console.log("address not a match");
errors += "Address should only contain alphanumeric characters \n";
} // end if
}