Following up on this question, I have another issue – how to get css hover values when you click on a text link?
For instance, I have these values for the text hover
a.test {
text-decoration:none;
}
a.test:hover {
text-decoration:none;
opacity:0.6 !important;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
filter:alpha(opacity=60) !important;
}
<a href="#" class="test">Click Me</a>
this fails of course!
$(".test").click(function(){
alert($(this).css());
return false;
})
Is it possible?
I came across this similar question but I prefer not to use that plugin.
You could do something like this, where you create your own list of css properties that would be applied to that element (assuming you had a list) and then cycle through them:
Example: http://jsfiddle.net/jasongennaro/GmWCz/
Of course, you could take this all the way and add all the properties, if that is what you needed.