G
Guest
Hi. I have the following Javascript function on an aspx page, in the HTML
code. As you can see, if the condition is true then 3 lines of code are
executed. My problem is that I cannot get the third line to work.
DataGrid1's style does not update as the Javascript specifies. Is this
formatted correctly? If not, please advise how I can correct this. Thanks!
function change()
{
if (xyz.style.display=="none")
{
xyz.style.display="block"
document.all.Image1.src = 'collapse.gif'
document.all.DataGrid1.style = 'Z-INDEX: 101; LEFT: 8px; POSITION: absolute;
TOP: 240px'
}
code. As you can see, if the condition is true then 3 lines of code are
executed. My problem is that I cannot get the third line to work.
DataGrid1's style does not update as the Javascript specifies. Is this
formatted correctly? If not, please advise how I can correct this. Thanks!
function change()
{
if (xyz.style.display=="none")
{
xyz.style.display="block"
document.all.Image1.src = 'collapse.gif'
document.all.DataGrid1.style = 'Z-INDEX: 101; LEFT: 8px; POSITION: absolute;
TOP: 240px'
}