As of now, I am validating my fields to just check if the field was filled in. Now I want to validate the entries further. For name- only alpha characters, zip-only numerical characters, ect. I know I'm going to have to use regular expressions, but as I'm new to regular expressions, I don't know how to insert it into my existing validation, any help would be appreciated.
Snippets of my current code:
valid = true;
if (document.form.name.value == '')
alert ( "please enter your name." );
valid = false;
<!-- Text widgets for the customers name and address -->
<td> Buyers Name: </td>
<td> <input type = "text" name = "name"
size = "30" onblur="validate_form()"
Again, any help would be awesome