title: How to swap image src on click?
body: <p>How can I swap two images back and forth, like for toggle.  </p>
  
  <p>Tried this but only works with the first try, does not switch the image back  </p>
  
  <pre><code>$("img.trigger2").click(function(){
          $(this).toggleClass("active").next().slideToggle("slow");
          this.src = this.src.replace("collapse.gif","expand.png");
          this.src = this.src.replace("expand.png","collapse.gif");
  
   });
  </code></pre>