Hi,
I am trying to disable (on runtime) a LinkButton that is running on a
server side .
I am using this javaScript code:
<script language="javascript">
function Enable_CmdSend()
{
if(this.checked)
{
document.getElementById('cmdSend').disabled = false;
}
if(!this.checked)
{
document.getElementById('cmdSend').disabled = true;
}
}
</script>
and i keep getting this error message:
'document.getElementById(...)' is null or not an object
what should i do to make it work?????
thanks,
Dror
Sazid Khan - 28 Aug 2006 00:19 GMT
Hi,
Can you paste the complete code here so that we can help you debug the issue.
As such, you can try document.all instead.
Thanks,
Sazid.
> Hi,
>
[quoted text clipped - 24 lines]
> thanks,
> Dror