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.checked)
{
found_it = document.form1.CarpAnglerFishId.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)
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.checked)
{
found_it = document.form1.CarpAnglerFishId.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)