I have a Javascript that validates two radio buttons. 

It worked before, but now it stopped checking. Anything I did wrong here? 
Thanks!

Robert O.
HWW

Here is the code:

<script language="JavaScript" type="text/javascript">
<!--
function checkform ( form )
{
// ** START **
  if (form.type.value == "") {
    alert( "Please enter a type." );
    form.type.focus();
    return false ;
  }
  // ** END **

}
    return true ;
}
//-->
</script>


<form action="web.cfm" method="POST" onsubmit="return checkform(this);">

<input type="radio" value="trial" name="type">
<input type="radio" value="sale" name="type">




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279643
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to