Forums

ASP

This topic is locked

Why am I still getting prompted on Validaitoin

Posted 27 Nov 2006 01:07:35
1
has voted
27 Nov 2006 01:07:35 Ken ke posted:
Guys,

I am trying to proceed to the next page but, cannot because I cannot get passed the Validation Prompt "Select a Fish Angler". Wondering Why ?


var found_it //<EM>initial value is null because we gave it no other value
for (var i=0;i<document.form1.CarpAnglerFishId.length; i++)
{
if (document.form1.CarpAnglerFishId[i].checked)
{
found_it = document.form1.CarpAnglerFishId[i].value //set found_it equal to checked button's value
}
}


if(found_it != null && document.form1.CarpAnglerFishId.value != "" //<EM>if found_it is NOT equal to null, a button HAS been checked
{
document.form1.submit();
return true;
}
else
{
alert("Select a Fish Angler";
return false;
}


Response.Write("<td align=""left"">   <input type=""radio"" name=""CarpAnglerFishId"" value='" & RS1("FishId" & "'>  <font color=""white""><font color=""white"" size=""4"">" & RS1("FirstName" & " " & RS1("LastName" & "</font></td>" & vbCrlf)

Reply to this topic