Forum Moderators: open
Here is my Javascipt...
<script language="JavaScript">
<!--
function radio_checker()
{
// set var radio_choice to false
var radio_choice = false;
// Loop from zero to the one minus the number of radio button selections
for (counter = 0; counter < DesignOptions.design.length; counter++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (DesignOptions.design[counter].checked)
radio_choice = true;
}
if (!radio_choice)
{
// If there were no selections made display an alert box
alert("Please select a Design before you Continue!")
return (false);
}
return (true);
}
-->
</script>
<input type="radio" name="radDrinkSize" value="Small">
Small
<input type="radio" name="radDrinkSize" value="Medium">
Medium
<input type="radio" name="radDrinkSize" value="Large">
Large
<input type="radio" name="radDrinkSize" value="Colossal">
Colossal</p>