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 -

php - MySQLi multi_query results for later use -