title: Running load function again on image with window.resize?
body: <p>I have design like this :</p>
  
  <pre><code>&lt;img class="imgtest" src="img.png" onload="scaleimg(event)" /&gt;
  </code></pre>
  
  <p>Now, I want call <code>scaleimg(event)</code> function again for image has <code>.imgtest</code> class when window is re-sized.</p>
  
  <p>I have tried but it is not working. </p>
  
  <pre><code>$(window).resize(function() {
       $("img").one('load', function(){
           scaleimg(event);
       });
      });
  </code></pre>
  
  <p>Help me for fixing it. Thanks for your help.</p>