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

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -