I have a class which uses a media query:
css:
@media only screen and (min-width: 58.75em)
.top-bar-section ul li {
border-left: 1px solid #fff;
transform: skewX(15deg);
}
Now if the value of City()
is London I want to change that css above to say:
@media only screen and (min-width: 58.75em)
.top-bar-section ul li {
border-left: 1px solid #fff;
transform: skewX(-15deg);
}
My javascript is:
if (City() == "London"){
//change the css class from the first example to the 2nd?
}
Any help on how I can do this with jQuery to change a classes css? Thanks, Josh