jQuery load / unload?
<p>So I was wondering how you would do this.</p>

<p>I have a code that looks like this:</p>

<pre><code>&lt;body&gt;
  &lt;div class="header"&gt;
  &lt;/div&gt;

  &lt;div class="content"&gt;
    &lt;div class="001"&gt;
      Content
    &lt;/div&gt;
    &lt;div class="002"&gt;
      Content
    &lt;/div&gt;
    &lt;div class="003"&gt;
      Content
    &lt;/div&gt;
  &lt;/div&gt;

&lt;/body&gt;
</code></pre>

<p>And my jQuery works like this :</p>

<pre><code>jQuery('.001').click(function(){
    jQuery(this).load('pages/001.html');
});
</code></pre>

<p>So what I would like is too add a line saying that if i click on another div (002 for example) to unload / go back to divs 001 state.</p>

<p>How would you achieve this ?</p>

<p>I was thinking of varing the contant at the beginning of the jQuery code and reloading it before each load, but I don't know if this is optimal.</p>

<p>Any ideas / tips ?</p>

<p>Thanks !</p>
