How can I upgrade my JQuery that will save last function when Post or Refresh page?
问题 With help of "@Dimitar Dimitrov" I have create this javascript that changes values after click on link. Here is JSFiddle link: http://jsfiddle.net/3uqF2/19/ Here is code of function: $(document).ready(function () { $(".my-link").on("click", function() { $(".status").hide(); var linkId = $(this).data("id"); $("." + linkId).show(); }); }); My Question is, how can I upgrade it, so when I refresh page or click on post (e.g. search button), my value that I click (e.g. "Eng", watch link of Fiddle)