title: Toggle between 2 classes in jQuery
body: <p>How can I toggle between two classes in jQuery, while the element does not have either class. </p>
  
  <p>Please note: I want to know if there is a way to do this with the <code>toggleClass()</code> method and not by <code>addClass()</code>, <code>removeClass()</code>. For example:</p>
  
  <pre><code>$('#myDiv').click(function(){
      $("#myDiv").toggleClass('red blue') 
  })
  </code></pre>