Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By zebda on
Hi there,
I'm new to drupal and try to figure the following thing out.
I want to use the jquery cookie plugin on my website like so
$.cookie('history', 'variable', { expires: 1 });
First I tried to add the cookie.jquery plugin to get this to work but now I found out it's already in the core of drupal 7 so I don't need to add it.
But still I get the error: 'undefined' is not a function (evaluating '$cookie'....
Can someone help me with this problem?
Thanks!