I've got an element class with the following CSS:
#item-group-navigation li a{
text-decoration: none;
color: white;
font-size: 18px;
font-family: MyriadProReg;
vertical-align: -1px;
}
And I add the following class using jQuery after a certain event:
.item-group-selected{
color:rgb(245, 255, 0);!important
}
But the problem is that the dynamically added style doesn't work. The default style is applied instead. I tried to use the !important
keyword but it doesn't work. Can anyone explain what I'm doing wrong?