Can I remove just the last added class from an element with jQuery
<p>Hey guys, the question pretty much asks itself... however, for more clarity:</p>

<p>I have an element called "chuckPalahniuk" and it has classes named "choke", "fightclub" and "haunted".</p>

<p>How could I get it so when I click on the "chuckPalahniuk" element, it removes "haunted" first, then "fightclub" on the second click and "choke" on the third?</p>

<p><strong>also</strong>: be aware that the class names are dynamically added.</p>

<p>Cheers. peeeps!</p>

<p>psy.example:</p>

<pre><code>$('#chuckPalahniuk').click(function() {
  $(this).removeLastClassAdded(); //except this function doesn't exist...
});
</code></pre>
