stevenspiel
stevenspiel

Reputation: 5999

Remove :hover styles on click

I have a jsFiddle that I am working with: http://jsfiddle.net/aL7Xe/77/

It all works great, I just need the blue hover to go away when the arrow is clicked, then to come back after you click off of it.

Trying to achieve it with:

$(this).removeClass('a:hover');

Upvotes: 0

Views: 375

Answers (2)

Jasper Mogg
Jasper Mogg

Reputation: 924

a:active{
    background:transparent;
}

In your CSS?

Upvotes: 1

Zhihao
Zhihao

Reputation: 14747

You can get the effect you want by setting a :hover pseudo-class for .menutoggle. Try this:

.menutoggle, .menutoggle:hover {
    background: grey;
    }

Example

Upvotes: 1

Related Questions