jQuery is not defined. And how to solve it

4.3k views Asked by At

This must be quite trivial, but I tried everything. This is my page: http://www.titabonatsou.gr/big-nothing.html

FYI: It should showcase a slider in the middle of the page. But I still get an error of "Uncaught ReferenceError: jQuery is not defined"

jQuery is not defined here in my code:

    jQuery(document).ready(function($) {
      var si = $('#gallery-1').royalSlider(
.
.
.
.

.{

I read about cases that .htaccess does the damage for forbidding hotlinking or permission to the folder that jquery is are forbidden.

What should I do?

3

There are 3 answers

0
EvilBeer On

Your jQuery file is empty. Please redownload it from http://jquery.com/download/ and check if your src for the file is correct

0
SelaYou On

the code you enter can work only after jquery is loaded in your page, may be you use it before your jquery reference

10
Ringo On

You didn't include jquery library into your page. Put <script src="http://code.jquery.com/jquery-1.10.2.js"></script> in your head tag. In order to check document ready you can do like this:

$(function(){
  // document ready
});