C
czuvich
All,
I seem to be having an issue with calling the
'document.getElementById()' in my javascript function. I have a
checkbox where runat=server is set since I am using it in the code
behind (this is asp.net 2.0). I then have a submit button. I want to
check to see if this checkbox is checked in the javascript button. But
since the control is runat=server, whenever I call the
getElementById(checkbox) it returns a null value (can't recognize the
control).
Of course whenever I remove the runat=server it runs fine, but I need
this to be able to use in my code behind. I was wanting to know if
there is a way to reference a server object in javascript. If so.. how?
Thanks.
I seem to be having an issue with calling the
'document.getElementById()' in my javascript function. I have a
checkbox where runat=server is set since I am using it in the code
behind (this is asp.net 2.0). I then have a submit button. I want to
check to see if this checkbox is checked in the javascript button. But
since the control is runat=server, whenever I call the
getElementById(checkbox) it returns a null value (can't recognize the
control).
Of course whenever I remove the runat=server it runs fine, but I need
this to be able to use in my code behind. I was wanting to know if
there is a way to reference a server object in javascript. If so.. how?
Thanks.