smithmrk
asked on
VS2012 / Javascript
This doesn't work and I don't know why?
<script type="text/javascript">
function GameDate() {
if(document.getElementById ('chk_AllG ameDate.Cl ientID').c hecked)
{
document.getElementById('t xt_GameDat e.ClientID ').disable d = 'false';
}
else
{
document.getElementById('t xt_GameDat e.ClientID ').disable d = 'true';
}
}
</script>
I want to enable a textbox when the checkbox is checked off!
I get this error when I click the Check Box:
0x800a138f - JavaScript runtime error: Unable to get property 'checked' of undefined or null reference
<script type="text/javascript">
function GameDate() {
if(document.getElementById
{
document.getElementById('t
}
else
{
document.getElementById('t
}
}
</script>
I want to enable a textbox when the checkbox is checked off!
I get this error when I click the Check Box:
0x800a138f - JavaScript runtime error: Unable to get property 'checked' of undefined or null reference
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
use server tag <%= chk_AllGameDate.ClientID %>