Sayed Sayed - 1 year ago 89
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


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

Answer Source

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.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download