K
Kevin Quigley
Hi,
Does anyone know how to expand the area in a div tag when the
selectedindexchanged event fires?
I can get this to work when the user clicks a button, using the
following javascript function.....
function expandDiv(ctrl)
{
ctl = eval(ctrl)
if (ctl.style.display == "none")
{
ctl.style.display = "";
}
else
{
ctl.style.display = "none";
}
}
and setting the onclick event of a asp button....
Button1.Attributes["onClick"] = "javascript:expandDiv('maindiv')";
I've tried ddlYesNo.Attributes["OnSelectedIndexChanged"] =
"javascript:expandDiv('maindiv')";
but it doesn't seem to work.
Any help would be gratefully appreciated.
Thanks.
Does anyone know how to expand the area in a div tag when the
selectedindexchanged event fires?
I can get this to work when the user clicks a button, using the
following javascript function.....
function expandDiv(ctrl)
{
ctl = eval(ctrl)
if (ctl.style.display == "none")
{
ctl.style.display = "";
}
else
{
ctl.style.display = "none";
}
}
and setting the onclick event of a asp button....
Button1.Attributes["onClick"] = "javascript:expandDiv('maindiv')";
I've tried ddlYesNo.Attributes["OnSelectedIndexChanged"] =
"javascript:expandDiv('maindiv')";
but it doesn't seem to work.
Any help would be gratefully appreciated.
Thanks.