I have a text box and a check box, by default the page should load and
the text box be disabled..I want it so that when you click the check
box the text box diabled = false...but, when you uncheck the check box
I want the disabled to = true again..heres what I have so far
<input type="checkbox" name="chxreques t"
onclick="javasc ript:enableFiel d()" value="ON" style="float: "left" >
<script language="javas cript">
function enableField()
{
if (chxrequest.che cked)= true
{
document.frmcal lreport.txtrequ est.disabled= false;
}
if (chxrequest.che cked)= false
{
document.frmcal lreport.txtrequ est.disabled= true;
}
} </script>
<input type = "text" id="txtrequest " name="txtreques t" size="20"
disabled></td>
the text box be disabled..I want it so that when you click the check
box the text box diabled = false...but, when you uncheck the check box
I want the disabled to = true again..heres what I have so far
<input type="checkbox" name="chxreques t"
onclick="javasc ript:enableFiel d()" value="ON" style="float: "left" >
<script language="javas cript">
function enableField()
{
if (chxrequest.che cked)= true
{
document.frmcal lreport.txtrequ est.disabled= false;
}
if (chxrequest.che cked)= false
{
document.frmcal lreport.txtrequ est.disabled= true;
}
} </script>
<input type = "text" id="txtrequest " name="txtreques t" size="20"
disabled></td>
Comment