Search code examples
javascriptjquerytwitter-bootstrapjquery-cookie

Issue with $.noConflict, jquery.cookie, and bootstrap


I am trying to use jquery.cookie to handle all of my cookie needs. Whenever I try to create a cookie, I get the following error:

Uncaught TypeError: Object function (e,t){return new x.fn.init(e,t,r)} has no method 'cookie'

I read to use $.noConflict() to fix this issue, which did indeed resolve the error above. However, when I use it, I get errors thrown about bootstrap's .tooltip(), as well as $.sidr which I use for my slide out menu.

Does someone have some suggestions on resolving this?

Thanks


Solution

  • I initially loaded jquery.cookie in the <head> of my site. Moving it to the very bottom fixed it.