Applying a class to a link when hovering a different link
This what I have;
- $('a.toggleLink').mouseover(function() {
- $('.togglelink').addClass('.hover');
- });
'toggleLink'
and
'togglelink' are two different classes, could this be causing problems?
Basically I want to apply the class of hover to togglelink when toggleLink is mouseover-d.
I'm guessing it's wrong as it isn't working but could someone let me know where im going wrong and how to fix it.
Thanks.