Sayed Sayed - 10 days ago 5
jQuery Question

jQuery cookies not working !

I have a big problem, jQuery cookies not working in all browsers..
And I'm using latest jQuery library version 1.4.4

Please help me

Edit:

var mid = $.cookie('mid');
if (mid == '1') {
$('#something').css('background', '#d3d3d3');
}

Answer

Some ideas:

  1. Try checking the error console for errors (on Firefox, Ctrl+Shift+J, or F12 for firebug).
  2. Make sure you the cookie plugin is included in the page properly.