tags:

views:

150

answers:

1

I included the jquery.cookie.js in my application and I am getting a firefox error saying jquery is not defined?

I have jquery in the project FOR SURE, removing the jquery.cookie.js script gets rid of the error.

What could be the reason for this?

+3  A: 

Make sure you have jQuery declared before jQuery.cookie.js

You can't use the jQuery object until it's declared and thus why it does matter the order.

RedWolves