I have an anchor tag with some css hover selection property assigned. This CSS is auto-generated by the system.
a.abcClass{
color: GREEN;
}
a.abcClass:hover{
color: RED;
}
I would like to assign above given hover CSS dynamically using jQuery. Like I would like to achieve this:
$("a.abcClass").addClass(":hover")
How this can be done ?
Edit: hover properties will be applied only when mouse will be hover over that element. What if I want to have hover effect on anchor tag when some button is clicked. As this CSS is autogrnerated I don't know about its css properties.