Forums

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

Home Forums JavaScript [Solved] Jquery Click help

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30625
    eip56
    Member

    Hello everyone. Can anyone tell me what I’m doing wrong here. I have a simple navigational menu buil with a anchor nested in a ul li. I am trying to add a background when the item is clicked with jQuery but nothing happens. Here is the code:








    It does something a little wierd. When you click on the link the background will kind of flicker real quick on all the anchors but nothing stays. I do have jquery working as there is more code ive just condensed it for you all. Any and all help is greatly appreciated.

    #77646
    eip56
    Member

    Thanks marc I tried your script and nothing. Again it flickers then gone just as fast.

    #77647
    jamygolden
    Member

    Do you have a live example of the problem?

    #77649
    eip56
    Member

    I do not I will try to get one up

    #77650
    eip56
    Member

    Issue solved thanks for the help. It was what I thought something stupid simple. Gotta prevent default. The browser was reloading the page when a link was clicked. Lol such a noob. Thanks @ryanolson

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