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

Home Forums JavaScript Toggle section. First anchor toggles first section

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #37679

    Hi. I am building an minor website and I have a menu that I want to toggle a section of the page. So I am trying to learn a bit of jquery. please help me with this. ofcourse I could do write some code for each anchor link but I want to make the code clean.

    When i click the first li in an ul I want the first section (html5 element) to be toggled. I also want the section that is currently toggled open to toggle to display:none.

    Well. If you don’t have time to write the code then you maybe have a link that describes how to?

    I’m working in jQuery

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.