title: jQuery: Temporarily change a style then reset to original class
body: <p>Say I have a class named testThing:</p>
  
  <pre><code>.testThing
  {
     background-color:#000000;
     float:left;
     height:50px;
     width:50px;
  }
  </code></pre>
  
  <p>And I want to be able to test a background color change to whatever control is of that class on a button click:</p>
  
  <pre><code>function setColor(someColor) 
  {
     jQuery('.testThing').css('background-color', someColor);
  }
  </code></pre>
  
  <p>But I want the user to be able to reset to the original color (another button click) based on what the class has:</p>
  
  <pre><code>function resetClass()
  {
     jQuery('#currentColor').removeClass('testThing');
     jQuery('#currentColor').addClass('testThing');
  }
  </code></pre>
  
  <p>Seems like this would work (Albiet not the best way to do this) but the control's background color doesn't reset to the original value held in that class.</p>
  
  <p>Now either I need to figure out why that remove to add doesn't reset it OR just a plain better way of doing it... seeing as it seems silly to remove and readd the class...</p>