How can I get the following code: $(document).ready(function(){ $("#go").click(function(){ $(".block").animate( { backgroundColor: 'red' }, 1000); $(".block2").animate( { backgroundColor: 'green' }, 1000); }); });
From: http://docs.jquery.com/Release:jQuery_1.2/Effects#Color_Animations To register a cookie so next time I visit the elements on the page are set to the color set above?.