I want to change the hyperlink colour property in CSS by using jQuery .toggleClass
. Here is what I mean:
The CSS class with [a] (hyperlink) in which I want to change the colour
.navigation a { color: black;}
The colour I want to change to:
.color-change-to-white-text {
color: white;}
jQuery I wrote, but it does not work:
$('a.navigation').toggleClass("color-change-to-white-text");
Is there any way to do this kind of styling?