Forums

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

Home Forums JavaScript prevent page jump with tabs and toggle

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

    I am using jquery to run some tabs and toggles and when I click the toggle to fold down the div containing hidden information, my page jumps to the top. I want to stop this. I tried searching the web and it seems that function(e){ e.preventDefault(); } is suppose to work but I am not getting any results. Any ideas?

    #103747
    TheDoc
    Member

    What does your code look like?

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