hi there,
i am trying to get a checkbox to show an input box when it is clicked on but i can't get it to work. here is the code i have so far:
<script type="text/javascript">
function showhide2(thismenu)
{
if(document.forms[0].ChangeInPracticeOther.value=='Left practice')
{
document.getElementById(thismenu).style.display="block";
}
else
{
document.getElementById(thismenu).style.display="none";
}
}
</script>
Reduced hours<input type="checkbox" name="ChangeInPracticeOther" value="reducedhours" />
Certain services/disease states not seen<input type="checkbox" name="ChangeInPracticeOther" value="servicesdisease" />
Left practice<input type="checkbox" name="ChangeInPracticeOther" value="Left practice" onClick="javascript: showhide2('menu4')" />
<div id='menu4' style='display: none'>
<br />
<br />
<i>If you selected "Left Practice", what work are you currently doing
now?</i><br />
</div>
can anyone help me out?? any help will be appreciated!
thank you!!!!!
karren
i am trying to get a checkbox to show an input box when it is clicked on but i can't get it to work. here is the code i have so far:
<script type="text/javascript">
function showhide2(thismenu)
{
if(document.forms[0].ChangeInPracticeOther.value=='Left practice')
{
document.getElementById(thismenu).style.display="block";
}
else
{
document.getElementById(thismenu).style.display="none";
}
}
</script>
Reduced hours<input type="checkbox" name="ChangeInPracticeOther" value="reducedhours" />
Certain services/disease states not seen<input type="checkbox" name="ChangeInPracticeOther" value="servicesdisease" />
Left practice<input type="checkbox" name="ChangeInPracticeOther" value="Left practice" onClick="javascript: showhide2('menu4')" />
<div id='menu4' style='display: none'>
<br />
<br />
<i>If you selected "Left Practice", what work are you currently doing
now?</i><br />
</div>
can anyone help me out?? any help will be appreciated!
thank you!!!!!
karren