hello! imagine i style the :hover pseudo-class of an element via css:
.myitem{ background-color:green; } .myitem:hover{ background-color:red } Is it possible to retrieve the background-color property of the elemnent's :hover class via jquery? i tried the obvious : http://jsbin.com/idudi/edit $(function(){ var temp = $('#myitem:hover').css('background-color'); alert("color is "+temp); }); But that didn't work. It returns the default state.