Hi
I need to reset the position of a checkbox in my ASP.NET page.
The checkbox is defined:
[CODE=asp]<asp:CheckBox TextAlign=left ID="CheckBox2" Style="z-index: 203; left: 538px; position: absolute; top: 144px;" Text="Test CKBOX"
runat="server" />[/CODE]
In the script when the page loads I have the following code that recalculates the left position:
[CODE=javascript]document.getEle mentById("Check Box2").style.le ft = parseInt(docume nt.getElementBy Id("CheckBox2") .style.left) + document.getEle mentById("dvSpa cer").style.pos Width; [/CODE]
However this produces an 'Invalid argument' error. The same line of code works for my other controls on this page but not this one. Does anyone please have any idea what I am doing wrong.
Thanks in advance.
I need to reset the position of a checkbox in my ASP.NET page.
The checkbox is defined:
[CODE=asp]<asp:CheckBox TextAlign=left ID="CheckBox2" Style="z-index: 203; left: 538px; position: absolute; top: 144px;" Text="Test CKBOX"
runat="server" />[/CODE]
In the script when the page loads I have the following code that recalculates the left position:
[CODE=javascript]document.getEle mentById("Check Box2").style.le ft = parseInt(docume nt.getElementBy Id("CheckBox2") .style.left) + document.getEle mentById("dvSpa cer").style.pos Width; [/CODE]
However this produces an 'Invalid argument' error. The same line of code works for my other controls on this page but not this one. Does anyone please have any idea what I am doing wrong.
Thanks in advance.
Comment