I have assigned a hover state to certain element using css. After a particular event I want to change that hover state using jQuery. I want to change :hover class selector that i have mentioned in css file. I knwo i can implement using .hover function but I don't want to use that because this is not suitable with my application. In my application this change in hover state is for certain time that means after that certain time I have to unbind the hover event. But in my app there are many conditional module where i need to call this unbind event. Many inefficient calls to unbind what I don't want.
elem {
width:10px;
}
elem:hover {
width:20px;
}
I want to change width of the hover state from say 20px to 40px. I want to use something simple like .css('width','100px') but how to call this function on :hover selector.
elem:hoverrule in the CSS? I don't think thathover()would be less efficient than any other method you apply.CSSfor this goal?hover()is inefficient in direct sense. Actually in my app I have to do the same thing withhover,focus,active. So instead of calling bind and unbind many times is there any way to simplify this in one or two step. May be something like adding or removingclass