A
Ahmad Noori
I have a form and in the form, I have a drop down box. Based on what
the user selects, i want to display different input boxes. Here is my
drop down box:
<td>
<select name="reptype" onchange="checkVersion4()">
<option value=""></option>
<option value="A">A:</option>
<option value="B">B:</option>
<option value="C">C:</option>
</select> </td>
So, as soon as there is a change i call my "checkVersion4()" and in
there i want to hide a this input box that I have in my form:
<div id="div1" style="visibility:show"> <input type="text"
name="repchapter" />
</div>
and my method checkVersion4() is:
eval(document.div1.visibility = 'hidden');
I can't get this to work on Netscape I got it working on IE. Does
anyone have an idea why? Or know of a good example for Netscape or Mozilla?
Thanks
the user selects, i want to display different input boxes. Here is my
drop down box:
<td>
<select name="reptype" onchange="checkVersion4()">
<option value=""></option>
<option value="A">A:</option>
<option value="B">B:</option>
<option value="C">C:</option>
</select> </td>
So, as soon as there is a change i call my "checkVersion4()" and in
there i want to hide a this input box that I have in my form:
<div id="div1" style="visibility:show"> <input type="text"
name="repchapter" />
</div>
and my method checkVersion4() is:
eval(document.div1.visibility = 'hidden');
I can't get this to work on Netscape I got it working on IE. Does
anyone have an idea why? Or know of a good example for Netscape or Mozilla?
Thanks