title: JQuery add class on current item
body: <p>I have this method that changes an larger image source on click. </p>
  
  <p>I need to add a 'current' class on the selected. I have no problem adding this class,but I need it to remove the class on the other, previous, selected item.</p>
  
  <p>This is the code I'm using at the moment:</p>
  
  <pre><code>$(document).ready(function() {
      $("ul.timgs li a").click(function(e) {
          e.preventDefault();
          var path = $(this).attr("href");
          $("div.tour-image img").attr({"src": path});
      });
  });
  </code></pre>
  
  <p>Thanks :-)</p>