Hi Everyone,
I have 2 dropdown box where one of the drop down box should be hidden when the a button is clicked. This is what I have so far
<TR>
<TD WIDTH="50%">Diagnosis4:
<SELECT NAME="cmbDiag4" size="1" ID= "cmbDiag4">
<option>A </Option>
<option>B </Option>
</SELECT>
WIDTH="50%">Diagnosis5:
<SELECT NAME="cmbDiag5" style= "visibility:hidden"size="1" ID= "cmbDiag5">
<option>C </Option>
<option>D </Option>
</SELECT>
<INPUT TYPE="button" NAME="btnSCode" VALUE="Search By Code" LANGUAGE=JAVASCRIPT onclick="btnSCode_onclick()">
function btnSCode_onclick(){
alert("This is atest") .
document.cmbDiag4.style.display = "hidden";
docuemnt.cmbDiag5.style.display = "Visible";
}
what am I missing? I can see the message popping up after that nothing happens. Please help
Thank youin advance
I have 2 dropdown box where one of the drop down box should be hidden when the a button is clicked. This is what I have so far
<TR>
<TD WIDTH="50%">Diagnosis4:
<SELECT NAME="cmbDiag4" size="1" ID= "cmbDiag4">
<option>A </Option>
<option>B </Option>
</SELECT>
WIDTH="50%">Diagnosis5:
<SELECT NAME="cmbDiag5" style= "visibility:hidden"size="1" ID= "cmbDiag5">
<option>C </Option>
<option>D </Option>
</SELECT>
<INPUT TYPE="button" NAME="btnSCode" VALUE="Search By Code" LANGUAGE=JAVASCRIPT onclick="btnSCode_onclick()">
function btnSCode_onclick(){
alert("This is atest") .
document.cmbDiag4.style.display = "hidden";
docuemnt.cmbDiag5.style.display = "Visible";
}
what am I missing? I can see the message popping up after that nothing happens. Please help
Thank youin advance