handling large cookies or using local storage - jquery and jquery cookie plugin
问题 I have the working code which sets and clears cookie (remembers div's style) on click: var originalAttributes = $('.aaa').attr('style'); $('.aaa').each(function(){ var d = $(this), id = d.attr('id'), storedStyle = $.cookie('aaaStyle' + id); if (storedStyle != undefined){ //style stored d.attr('style', storedStyle); } }); //mouse event functions for class="aaa" $('#save').click(function () { $('.aaa').each(function(){ var d = $(this), id = d.attr('id'), style = d.attr('style'); if (style !=