I am trying to enable a disabled list box when the user clicks on a radio button. I am new to javascript and am not sure if the simple function is correct and if I am calling it right. Any help would be appreeciated.
<form name=form1 method=post action=test.asp>
<head>
<script language="javascript">
function enable(){
document.form1.cbosecondary.enabled = "true";
return;
}
</script>
</head>
<form name=form1 method=post action=test.asp>
<p><font size=5>Aging Work Order Form</font><br><br>
<p>Search By</p>
<input type=radio name=shop value="ftr_description" checked >Entire Shop
<input type=radio name=shop value="sh_name" onclick="form1.enable();">One Trade<br>
<P>Sort By</P>
<input type=radio name=sort value="wo_request_date" checked>Date
<input type=radio name=sort value="wo_number">Work Order #<br>
</form>
<form name=form1 method=post action=test.asp>
<head>
<script language="javascript">
function enable(){
document.form1.cbosecondary.enabled = "true";
return;
}
</script>
</head>
<form name=form1 method=post action=test.asp>
<p><font size=5>Aging Work Order Form</font><br><br>
<p>Search By</p>
<input type=radio name=shop value="ftr_description" checked >Entire Shop
<input type=radio name=shop value="sh_name" onclick="form1.enable();">One Trade<br>
<P>Sort By</P>
<input type=radio name=sort value="wo_request_date" checked>Date
<input type=radio name=sort value="wo_number">Work Order #<br>
</form>