In the mean time, first make sure that jQuery is loaded before line 24. If that doesn’t help try seeing if changing $(document) to jQuery(document) helps.
To answer your last question, $(document) should work with any version of jQuery.
That means that jQuery has not been loaded, that it cannot be found. If you’re using noConflict then it has to be the full jQUery name that you use, at least to start with:
jQuery.noConflict(); // remove $ as the jQuery global variable
jQuery(document).ready(function ($) {
// $ can be used in here now
});
What I’ve done now is that I made sure jQuery 10 was loading first, set the jQuery.noConflict above the smooth scrolling script. But now my menu no longer works.
Well I finally got it working! But I’m still a little confused about one thing:
I’ve got two different version of jQuery running. It’s obvious that I shouldn’t have more than one running. But it seems that v.10 disables my menu, but without it I can’t run the smooth scroll.
Anyone have any suggestions on how I can just run one version of jQuery?