title: How can I toggle between 2 images
body: <p>Im trying to use this code to toggle between a play and pause button but it doesn't seem to be working. How can I get it toggle between the 2 images when the are clicked </p>
  
  <p><a href="http://jsfiddle.net/aFzG9/1/" rel="noreferrer">http://jsfiddle.net/aFzG9/1/</a></p>
  
  <pre><code>$("#infoToggler").click(function()
  {
      if($(this).html() == "&lt;img src="http://tympanus.net/PausePlay/images/play.png" width="60px" height="60px"/&gt;")
      {
          $(this).html("&lt;img src="http://maraa.in/wp-content/uploads/2011/09/pause-in-times-of-conflict.png width="60px" height="60px"/&gt;");
      }
      else
      {
          $(this).html("&lt;img src="http://tympanus.net/PausePlay/images/play.png" width="60px" height="60px"/&gt;");
      }
  });
  </code></pre>
  
  <p>Thanks</p>