I added a javascript file to my site in the theme's .info file
scripts[] = js/myjs.js
The js file loads and I can see that it's included in the head when I load the site, however the jQuery javascript doesn't work at all. I have a simple show/hide when a div on the page is clicked by it's not working.
This works fine when it is not in the Drupal site.
By clicking "Click here to start quiz" it should hide that div and show another.
I have a feeling it is because I do not have the most updated version of jQuery installed (I have 1.4.4 instead of 1.9.1), but I'm not sure how to update it for the theme I'm using.
Any ideas?
$(document).ready(function () {
to:jQuery(document).ready(function ($) {
I found the answer here: stackoverflow.com/questions/10807200/…