hi everyone. i am having trouble with validating an input field where someone is supposed to enter their full name. i got this validation from the internet but it does not allow spaces between words. please help me correct it and explain to me what was wrong. Thanks a bunch.
the code i have is
var alphaExp = /^[0-9a-zA-Z]+$/;
if(elem.value.match(alphaExp)) {
return true;
}else{
alert("Enter name please");
}