Problems when toggling a class called “a:active” using jQuery
As it stands, clicking on "Link" twice redirects you to a page, but whenever you click on and around it such that the menu drops down or goes up, the CSS code a:active span { color:#bdbcae; } is put into effect. What I am trying to do is make it so that the link only changes color when you click it the second time, resulting in you being redirected to the page. If you click it only once so that only the menu drops down, I want the link to remain its default color. This is the code in my function below that I was looking at to accomplish this if ($(this).data('clicks')==2){ $(this).data('clicks