Forum Moderators: open
function checkform_onsubmit()
{
var returnValue = false;
var myform = document.form1;
if (myform.alone_potential_friend.value == " " ¦¦ myform.alone_potential_neighbour.value == " " )
{alert ("Please complete all fields.");}
else
{
returnValue = true;
}
return returnValue;
}
I have also tried seperating out the different entries using "if else" but get the same result.
Thanks
How about this ..
1) Change the submit button to just a regular button .. with onclick="checkform_onsubmit()"
function checkform_onsubmit()
{
if (document.form1.alone_potential_friend.value == " " ¦¦ document.form1.alone_potential_neighbour.value == " " )
{alert("Please complete all fields.");}
else{document.form1.submit();
}
}
Any more ideas?
Thanks