jQuery to target CSS a:hover class

Posted by songdogtech on Stack Overflow See other posts from Stack Overflow or by songdogtech
Published on 2011-01-05T05:30:10Z Indexed on 2011/01/05 5:53 UTC
Read the original article Hit count: 234

Filed under:
|
|
|

Confused here. What's the best way to change the hover CSS of the link below, and how? toggle.Class? add.Class? I want to show an image on hover. I have been able to change the color of the text with

$("#menu-item-1099 a:contains('rss')").css("color", "#5d5d5d");

but can't seem to target the hover class.

<div id="access">
<div class="menu-header">
<ul id="menu-main-menu" class="menu">
<li id="menu-item-1099" class="menu-item menu-item-type-custom menu-item-1099">
<a href="http://mydomain.com/feed/">rss</a></li>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about css