Return to Snippet

Revision: 23899
at February 16, 2010 15:41 by vagrantradio


Initial Code
$("#divid").toggle(function() {
	$("#divid ul").slideUp("slow");
	$.cookie('cookie_name', 'position');
	}, 
	function () {
	$("#divid ul").slideDown("slow");
	$.cookie('cookie_name', 'position2');
	});
// cookie
	var cookie_name = $.cookie('cookie_name');
	// Set the user's selection for the right column
	if (cookie_name == 'position') {
		$("#divid ul").hide();
	};

Initial URL
http://www.vagrantradio.com/2009/10/getting-and-setting-cookies-with-jquery.html

Initial Description

                                

Initial Title
SETTING AND GETTING COOKIES WITH JQUERY

Initial Tags
jquery

Initial Language
jQuery