jQuery cookie and toggle() -
when element h4 clicked, .toggle() .mchatbodyfix toggle $.cookie either yes or no
$('.cat h4').not('.mchatopts span').click(function(){ $('.mchatbodyfix').toggle(); $.cookie('chat', 'yes', {expires:1}); });
how
$.cookie('chat', $.cookie('chat')=='yes'?"no":"yes", {expires:1});
Comments
Post a Comment