Need some help with jQuery .css!

Need some help with jQuery .css!
0.0 0

#1

Hi! I’m having using the .css function with jQuery.

I have this link with the class “liqui”:

<li><a href="http://liquipedia.net/starcraft/Tasteless" class="liqui">Check his Liquipedia for more!</a></li>

And then a jQuery to give it some random stand-out css for test purposes:

      $(".liqui").css({
        "background-color": "yellow",
        "font-size": "200%"
      });

But it isn’t applying the css changes.

Am I doing something wrong?


#2

Do you have jQuery added to the project? If so, then I would suggest moving all the JavaScript in between the script tags into the JS module.


#3

Oh wow, that worked! Thank you!
I’ll be sure to keep jQuery stuff inside the JS module.