C
csgraham74
Hi,
I have a problem in my code regarding aspnet panel controls and
javascript.
Basically im attempting to hide a button using javascript that it is in
an aspnet panel. when the panel is visible i can do the following
document.getElementById('btn_AcceptTerms').style.visibility='hidden'
this then hides my button correctly
if the panel is not visible then this code above throws an error.
is there anyway i can check if the button is visible in javascript and
if it is hide the button and if it is not leave the the button hidden.
i think the panel probably makes this more difficult.
any help appreciated
thanks
CG
I have a problem in my code regarding aspnet panel controls and
javascript.
Basically im attempting to hide a button using javascript that it is in
an aspnet panel. when the panel is visible i can do the following
document.getElementById('btn_AcceptTerms').style.visibility='hidden'
this then hides my button correctly
if the panel is not visible then this code above throws an error.
is there anyway i can check if the button is visible in javascript and
if it is hide the button and if it is not leave the the button hidden.
i think the panel probably makes this more difficult.
any help appreciated
thanks
CG