- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 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 › jQuery Problem – Probably me being an idiot!
Hi everyone
I am just learning the syntax of jQuery and I was wondering if you could help me to see where I am going wrong.
I know it can be done with CSS easily, it’s just something I am trying out with jQuery instead to get used to it, I want the darkgreen colour to take effect when I hover over each anchor in the navigation and go back to its original colour when the mouse leaves the anchor. It seems to be activating ALL anchors, how do I single it out to just one at a time?
Here is my pen – http://codepen.io/Watson90/pen/icAFl
Thanks in advance…
@ToxicFire YES! I remembered seeing something about ‘this’ but I couldn’t figure out how to put it into the code, works perfect now. Thanks!
Would you recommend anything else to help me learn jQuery? Or is it best to just play around with the code to explore the possibilities?
@ToxicFire – thanks will do :)
Cheers for that @andy_unleash :)
Really want to get more confident with jQuery, seems so difficult at the minute though…