Jump to content



Recommended Posts

Give the form an ID in addition to the name. And instead of this:return validateForm(register);do this:return validateForm(this);Then you can change your function to this:

function validateForm(frm){  if(""==frm.FName.value)  {	alert("Please enter your first name.");	return false;  }}

Make sure the text field also has an id.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...