Skip to content Skip to sidebar Skip to footer

Jquery Click Event Only Working After Moving The Mouse In Chrome

So I know there are better ways of switching styles, but bear with me... There seems to be a small bug happening on Chrome (but not Firefox) where the 'click' event wont do anythi

Solution 1:

I don't why this shouldn't work (except the strange rel="" use).

If you are trying to use a minified or a version with multiple instances of the js the problem might be the usage of .click instead of the .on('click', function(e)).

To see an example of what i trying to say, check out my Fiddle.

For a full explanation on the difference between the two click functions check this overflow

Post a Comment for "Jquery Click Event Only Working After Moving The Mouse In Chrome"