hello all,
i have used this radio button validation before and it has workied, but isnt working on my new form.
can you help?
Here is my form head
And the javaScript function
thank you
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
- Doh
i have used this radio button validation before and it has workied, but isnt working on my new form.
can you help?
Here is my form head
Code:
<form name="form" method="post" onsubmit="return valformPage2(form);" action="default2.asp?id=<%=id%>&ref=<%=ref%>">
And the javaScript function
Code:
function valformPage2(form)
{
myOption = 0;
for (f=0; f<form.q0.length; f++)
{
if (form.q0[f].checked)
{
{
myOption = 1
}
}
}
if (myOption == 0)
{
alert("You must select a option");
return false;
}
}
thank you
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
- Doh