how to change the position of div dynamically [Resolved]

Posted by Praveen7k under ASP.NET on 6/10/2011 | Points: 10 | Views : 3826 | Status : [Member] | Replies : 2
i have a asp button in a div to right side of page..i want to change the position to the left in the same row dynamically with onchange event of dropdown

i did this way document.getElementById('divButtonGo').style.Paddingleft="80px"....

how to do this with javascript????




Responses

Posted by: T.saravanan on: 6/12/2011 [Member] [MVP] Silver | Points: 50

Up
0
Down

Resolved
Hi,

Set float- left for that div in dropdown onchange event...
<div style="float:left;">


Thanks,
T.Saravanan

Praveen7k, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Seenuvasan on: 6/13/2011 [Member] Starter | Points: 50

Up
0
Down

Resolved
Hi Praveen,
try this one,
document.getElementById('divButtonGo').style.cssFloat="left"

Thanks,
Seen

Praveen7k, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response