Results 1 to 3 of 3

Thread: Css positioning help needed

  1. #1
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default Css positioning help needed

    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

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by codeexploiter View Post
    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

  3. #3
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    The item i was looking can be achieved using the following thing:

    Code:
    document.getElementById("elemId")style.display = "none";
    and
    Code:
    document.getElementById("elemId")style.display = "inline";
    Thanks for the help Mike

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •