Access CSS Styles for Pseudo Selector in JQuery?

Posted by viatropos on Stack Overflow See other posts from Stack Overflow or by viatropos
Published on 2010-04-30T21:44:11Z Indexed on 2010/04/30 21:57 UTC
Read the original article Hit count: 216

Filed under:
|
|

If I define the up and over states of a button like this:

.button {color:red;}
.button:hover {color:blue;}

How can I get all the hover state styles for an element using JQuery?

Something like $(".button:hover").css('color');...

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about pseudo-selector