JQuery - Remember Image State
问题 I have an image on my site that can be clicked. Once clicked jquery changes the image and runs an ajax query. I'm not looking to have the image state remembered. It will either be ON or OFF. I know I should be using cookies or local storage, but I need to make sure this works with some possibly old browsers, and I've no idea how to approach saving the state.. The code I'm using to toggle the image is : jQuery(function(){ $(".img-swap").live('click', function() { if ($(this).attr("class") ==