title: JQuery keeping addClass stored after page reload
body: <p>I am pretty new to JQuery and I'm working on a menu based on Superfish script.
  I am having troubles to keep the addClass on current clicked item set when I navigate thru links.</p>
  
  <p>My code:</p>
  
  <p><strong>JS</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  jQuery.noConflict();
  jQuery(document).ready(function(){
  
  jQuery("ul.sf-menu").superfish({pathClass:  'corrente'});            
  
  jQuery('#sf-menu li a').click(function() {
        jQuery("#sf-menu li").removeClass('corrente');
        jQuery(this).parents().filter("li").addClass('corrente');
        jQuery("ul.sf-menu").superfish({pathClass:  'corrente'    });
  });
  });
  &lt;/script&gt; 
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;ul id="sf-menu" class="sf-menu sf-navbar"&gt;
    &lt;li&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Band&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Solo Projects&lt;/a&gt;
        &lt;ul&gt;
        &lt;li&gt;&lt;a href="#"&gt;Tim&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Tom&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;John&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Media Appearances&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Tour&lt;/a&gt;
        &lt;ul&gt;
       &lt;li&gt;&lt;a href="#"&gt;The Reunion Tour&lt;/a&gt;
           &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;North American Leg&lt;/a&gt;&lt;/li&gt;
       &lt;/ul&gt;
           &lt;/li&gt;
        &lt;/ul&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Gallery&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>The above html works fine, the class "corrente" is correctly set, but when I change html inserting actual links, the class is set fine but get lost when the destination page is loaded. </p>
  
  <p>Can you please give me any advice on how store the class added and pass it thru the destination page?</p>
  
  <p>Thank you in advance</p>