I wrote up a bit of JQuery code which I tested in w3schools’ online editor and it works just as intended there. However, it has no effect when tested on my page. I tried replacing the first $ with “JQuery” which didn’t work.
I found the answer on the forum, after about 20 minutes of googling! If someone stumbles across this thread in the future, you have to wrap your JQuery with the following:
jQuery(function($){
/* PLACE YOUR CODE HERE SO YOU COULD USE $ */
});