Skip to main content

Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22720
    adhoc01
    Participant

    Hi,

    Im trying to make some simple boxes that when clicked on drop down to give the user more information. This is obviously easy enough BUT I am really surprised with the issues I’m having in closing the other divs down when one opens.

    Im using this code snippet:

    Code:

    and the link is :

    Quote:
    <a href="javascript:showMe(1);">China</a>

    Can anyone see any obvious issues with this code? Javascript really isn't my language - I'm mor eused to idiot based Python.

    Thanks
    Ad

    #47677
    Donna
    Member

    Your routine works for me when I use the following markup. When I click on "China", it displays the first block and hides the second block and visa versa. I agree with Chris that you need to have a live link to your example and you should include the html markup as well because it is not clear what you are trying to do.

    Code:


    test

    This is a test for China

    test div_1

    This is a test for Japan

    China
    Japan

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Other’ is closed to new topics and replies.