D
Doogie
Hi,
I am trying to access the visible property of an ASP button inside
javascript to no avail. Here's what my button control looks like:
<asp:Button id="btnAcceptTrips" name="btnAcceptTrips" runat="server"
Text="Accept Trips" Visible="False">
Here's my test method:
function test(checkbox)
{
if (checkbox.checked)
{
document.Form1.btnAcceptTrips.visible = true
}
}
I get an error saying this object is null or doesn't exist. So I
played around with this. I can verify that I can access the
btnAcceptTrips object within javascript, I can even access the
btnAcceptTrips object name property value, but visible doesn't appear
to be accessible. I've tried "Visible" and "visible".
Does anyone know how to get access to this value?
I am trying to access the visible property of an ASP button inside
javascript to no avail. Here's what my button control looks like:
<asp:Button id="btnAcceptTrips" name="btnAcceptTrips" runat="server"
Text="Accept Trips" Visible="False">
Here's my test method:
function test(checkbox)
{
if (checkbox.checked)
{
document.Form1.btnAcceptTrips.visible = true
}
}
I get an error saying this object is null or doesn't exist. So I
played around with this. I can verify that I can access the
btnAcceptTrips object within javascript, I can even access the
btnAcceptTrips object name property value, but visible doesn't appear
to be accessible. I've tried "Visible" and "visible".
Does anyone know how to get access to this value?