How can i get the :hover in css stylesheet on the fly with jquery?
stupid example:
a.foo { color: red; font-size: 11px; } a.foo:hover {
You can use .hover() function instead. http://api.jquery.com/hover/
.hover()
$( "a.foo" ).hover( function() { $( this ).css( 'color','red' ); }, function() { $( this ).css( 'color','blue'); } );