- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › [Solved] Jquery Click help
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.
Thanks marc I tried your script and nothing. Again it flickers then gone just as fast.
Do you have a live example of the problem?
I do not I will try to get one up
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