Click to See Complete Forum and Search --> : Visibility


Jonathan
07-04-2003, 08:22 PM
how can i make a textbox appear and disappear when a radio is checked/notchecked?

Jonathan
07-04-2003, 08:24 PM
oops.. forgot... hehe

<input type="checkbox" name="myR" value="one" onClick="if(this.form.t1.style.visibility=='visible'){this.form.t1.style.visibility='hidden';}else{this.form. t1.style.visibility='visible';}"> One
<input type="checkbox" name="myR" value="two" onClick="if(this.form.t2.style.visibility=='visible'){this.form.t2.style.visibility='hidden';}else{this.form. t2.style.visibility='visible';}"> Two
<input type="checkbox" name="myR" value="three" onClick="if(this.form.t3.style.visibility=='visible'){this.form.t3.style.visibility='hidden';}else{this.form. t3.style.visibility='visible';}"> Three
<br><br>
<input type="text" name="t1" style="visibility:hidden;"><br>
<input type="text" name="t2" style="visibility:hidden;"><br>
<input type="text" name="t3" style="visibility:hidden;">