Forum Documentation Showcase Pricing Learn more

Uncaught ReferenceError: $ is not defined

If jQuery is included in Bubble by default, why am I not able to run jQuery code?

"Uncaught ReferenceError: $ is not defined"

From

$(document).ready(function(){
$("#anchor").parents("div.bubble-element.Group").css("height","100vh");
$(".main-page").css("height","100vh")
});

Same error when replacing $ with jQuery.

Open the page you want the code to run on, open the dev console on chrome, paste the code in there…
Even if a page doesn’t have jquery as part of it, the console does.

If the code works, then there is a problem with the page markup, if the code doesn’t then there is a problem with the code snippet.

Thank you for the quick reply. I’ll try your advice.

This topic was automatically closed after 70 days. New replies are no longer allowed.