title: Remove last class
body: <p>When clicking on a div I want to remove the last of it's classes (which is always the third). So, when clicking on the div below I want class3 to be removed, which can have different class names (but always ends with '_hover').</p>
  
  <p>Is there an easy way of doing this?</p>
  
  <pre><code>&lt;div id="container" class="class1 class2 class3"&gt;
  
  $('#container').on('click', function() {
      $(this).removeClass(?);
  }
  </code></pre>