JQuery code not working

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 $ */

});

Hey There,

We are just glad that you have figured it out a way to correct your issue.
We really appreciate for for sharing this information.

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.