Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Div - hide/show problem

    hi,
    i made a table with a links, by clicking the links i open a div window.
    the problem is the previus div dosent close so i have all the windows open until i close them.
    i need somthing to hide the privius div before open a new one.
    thanks ofir.

    link to the table: http://www.fs-business.com/Temp/Ambi...onExamples.htm

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    There are two things you can do:

    1)Have a loop that hides all of the divs before you show the one that is supposed to be visible.

    2)Store the last value of the div that was open and hide it.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]


  •  

    Posting Permissions

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