Swap class w/jQuery
<p>How can I make a conditional swap with jQuery on click. If certain class is present swap it to another, for example swap class "A" to "B".</p>

<pre><code>&lt;a href="#" id="clickMe"&gt;&lt;span class="A"&gt;&lt;/span&gt;link&lt;/a&gt;
</code></pre>

<p>I've been trying this but it does not seem to work:</p>

<pre><code>$(this).closest("span").toggleClass("A,B");
</code></pre>

<p>What am I missing?</p>
