I've searched this site but cannot seem to find what I need. I have a form with a radio button on it and I need to validate it. When a user attempts to submit the form I need the validation to see if they made a selection and if not give them an error.
Here is what i have but it won't work...
if (f.NumLocations.checked = false)
{
alert ("Please Select the Number of Locations");
f.NumLocations.focus()
return false;
}
...Please advise. It gives me a "False undefined" error.
Here is what i have but it won't work...
if (f.NumLocations.checked = false)
{
alert ("Please Select the Number of Locations");
f.NumLocations.focus()
return false;
}
...Please advise. It gives me a "False undefined" error.