Sorry for the wrong Forum, but I hope someone answers my question.
Normaly I use validateForm() for all my fieds, but fot this javascript the name of the field must be 1 word (eq fullname)
Just like: <input type=text size="30" name="fullname">
But what if I would like to name the fiels "Full Name", like <input type=text size="30" name="Full Name">
document.search.Full Name.value WILL NOT work!
function validateForm() {
if (document.search.fullname.value=="")
{alert('Please fill in your real name!');
return false}
else return true;}
//--></script>
[This message has been edited by ds (edited February 28, 1999).]
Normaly I use validateForm() for all my fieds, but fot this javascript the name of the field must be 1 word (eq fullname)
Just like: <input type=text size="30" name="fullname">
But what if I would like to name the fiels "Full Name", like <input type=text size="30" name="Full Name">
document.search.Full Name.value WILL NOT work!
Code:
<script type="text/javascript" language="JavaScript"><!-- function validateForm() {
if (document.search.fullname.value=="")
{alert('Please fill in your real name!');
return false}
else return true;}
//--></script>
[This message has been edited by ds (edited February 28, 1999).]