S
Some Girl
I have a simple form that has one check box, an done text box. I'd
like the contents of the box to be hidden, but made visible if the
check box is checked.
Here's a snippet of code:
<form name="Form1" method="post">
<input name="View1" type="checkbox"><br>
<input name="View2" value="someanswer" type="hidden">
</form>
</script language="JavaScript">
if (document.Form1.View1.checked)
{
document.Form1.View2.style.visibility="visible";
}
</script>
Any suggestions?
like the contents of the box to be hidden, but made visible if the
check box is checked.
Here's a snippet of code:
<form name="Form1" method="post">
<input name="View1" type="checkbox"><br>
<input name="View2" value="someanswer" type="hidden">
</form>
</script language="JavaScript">
if (document.Form1.View1.checked)
{
document.Form1.View2.style.visibility="visible";
}
</script>
Any suggestions?