if i click on one link other links should disappear,how to achieve??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Priya priety
    New Member
    • Oct 2012
    • 2

    if i click on one link other links should disappear,how to achieve??

    I am havinf a link called "click me".
    M also having links called "dos" and "donts".
    what I want is if i click on link "click me",other 2 should disappear.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I'm not sure if you can accomplish this using CSS and HTML alone.

    However, you can write a JavaScript method that you call when the link is clicked which would set the CSS display style of the elements you want to hide to "none".

    -Frinny

    Comment

    Working...