Swapping element class using jQuery
<p>I have an element :</p>

<pre><code>...
&lt;li class="products active"&gt;&lt;a href="" title="Title"&gt;test&lt;/a&gt;&lt;/li&gt;
...
</code></pre>

<p>I want to access this "li" tag and swap the "active" class to "past" class
so the final result would be :</p>

<pre><code>...
&lt;li class="products past"&gt;&lt;a href="" title="Title"&gt;test&lt;/a&gt;&lt;/li&gt;
...
</code></pre>

<p>What is the easiest / efficient way to achieve this using jQuery ?</p>
