Jquery get css rule :hover

Hi,
Is there a way to get the value
of the #tab in a:hover status ?


#tab a{
   background-color: #003300;
}
#tab a:hover{
   background-color: #006600;
}

Bye.

A little google search never hurts!

http://stackoverflow.com/questions/654295/how-get-the-hover-css-style-of-an-anchor-with-jquery

Also this, as mentioned on the [URL=“http://api.jquery.com/css/”]jQuery page for css()

Sorry Raffles but I’ve just googled
I want to get the value not set
the only thread I’ve found was
http://api.jquery.com/css/#comment-48002561
In the jQuery.Rule plugin I don’t see any example to get the value :frowning:

btw thanks for your time :slight_smile:

If you look at the API for jQuery.Rule it has a function called text() that returns the text for that rule.

So it seems like you can do:

$.rule('#tab a:hover', 'link').text();

and then you’ll have to parse out the background-color.

:slight_smile: