hi -
i have a reset button with an onclickto reset some radio buttons. the radio buttons will not reset, but the other lines in the reset function definition execute correctly. what the heck am i doing wrong?
here's the html for the reset button:
here's the function
here's the html for the radio buttons:
thanks a bunch,
eric
i have a reset button with an onclickto reset some radio buttons. the radio buttons will not reset, but the other lines in the reset function definition execute correctly. what the heck am i doing wrong?
here's the html for the reset button:
Code:
<input type="button" name="fromresetbutton" value="Reset" onclick="frommyreset();"><br><br><br>
here's the function
Code:
function frommyreset(){
//radio buttons
document.mainform.fromrev.checked=false;
document.mainform.frominter.checked=false;
//control div display
fromDS3Div.style.visibility='hidden';
fromOC3Div.style.visibility='hidden';
fromSTMDiv.style.visibility='hidden';
fromVocSlaveDIV.style.visibility='hidden';
//text box reset
document.mainform.frompcount.value="";
document.mainform.fromscount.value="";
return true;
}
here's the html for the radio buttons:
Code:
<tr><td class="detail">
Software Rev: <br>
A: <input type="radio" name="fromrev" value="A">
B: <input type="radio" name="fromrev" value="B">
</tr></td>
<tr><td class="detail">
Interface: <br>
DS3: <input type="radio" name="frominter" value="DS3" onclick="fromDS3();">
OC3: <input type="radio" name="frominter" value="OC3" onclick="fromOC3();" disabled>
STM-1: <input type="radio" name="frominter" value="STM" onclick="fromSTM();" disabled>
</tr></td>
thanks a bunch,
eric