Soldato
Anyone know why this won't work.
Seems all valid to me.
Oh and yes I know it's old school JavaScript, it's a legacy form.
Seems all valid to me.
Oh and yes I know it's old school JavaScript, it's a legacy form.
PHP:
{
var chks = document.getElementsByName('previous');
var checkCount = 0;
for (var i = 0; i < chks.length; i++)
{
if (chks[i].checked)
{
checkCount++;
}
}
if (checkCount < 1)
{
alert("MESSAGE 1 GOES HERE.");
return false;
}
}
if(contactform.previous[0].checked){
if(contactform.refnumber.value.length==0||contactform.refnumber.value==" "){ alert("MESSAGE 2 GOES HERE"); contactform.refnumber.focus(); return false;}
}