Log in

View Full Version : Css positioning help needed



codeexploiter
12-13-2006, 11:49 AM
Hi all,

It is a simple query.

I have 3 form elements two text boxes and one button what i want to do is i want to hide the second text box at that time the button should come in place of the second text box. Once I make the second text box visible the button should go to its original location.

I know it can be done with positioning but don't know exactly how to do that.

Please help to solve this one.

regards

mwinter
12-13-2006, 02:56 PM
I have 3 form elements two text boxes and one button what i want to do is i want to hide the second text box at that time the button should come in place of the second text box. Once I make the second text box visible the button should go to its original location.

If you comment out (<!-- ... -->) the control, does the button take its place properly? If so, use the display property to hide the control. If not, you'll probably need to post a small example of the markup for that section.

Mike

codeexploiter
12-15-2006, 05:09 AM
The item i was looking can be achieved using the following thing:


document.getElementById("elemId")style.display = "none";
and

document.getElementById("elemId")style.display = "inline";

Thanks for the help Mike