When do you want the validation to happen? When you click the submit button?
An easy way would be to have a button(type="button") and an onclick event:
<input type="button" value="Click" onclick="validate();" />
Then define a validate function, inside it use javascript to take the values of the fields you want to validate and if successful submit the form.
You will find good tutorials here: http://www.w3schools.com/default.asp
javaAddict
Nearly a Senior Poster
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448