title: Rotate image every time on click JQuery
body: <p>I want to rotate an image every time I click on it.. I've created a function to do this but the image only rotate the first time I click on it... Moreover, once the image rotate it change automatically the width and height.. How can I keep the same width and height every time??</p>
  
  <p>This is the function:</p>
  
  <pre><code>$(document).ready(function () {
      $("img").click(function () {
        $(this).rotate(45)       
      })
  })
  </code></pre>