I need get value from cookies with jQuery.
Everything works fine until i try get value with setInterval() function: "Uncaught TypeError: jQuery.cookie is not a function".
Why jQuery not recognize plugin (in my case jQuery.cookie) in function called with setInterval()?
var view = jQuery.cookie('test_view'); //ok
var modal = function(){
openPage('after2min');
};
setTimeout(modal, 5000);
function openPage()
{
var view = jQuery.cookie('test_view'); //error - Uncaught TypeError: jQuery.cookie is not a function
}