title: Change colour of table row onclick
body: <p>I have created a table having rows with alternating colours(say yellow and red). Now, I want to change the colour of the clicked row to one common colour(say blue).And revert back to its original colour when clicked again. 
  I'm able to change the colour using this code</p>
  
  <pre><code>$("#mainTable").find('#'+IDClicked).css("background-color", "#bbbbff");
  </code></pre>
  
  <p>I'm not able to figure out how to revert back.</p>