title: running jquery on images after page load
body: <p>I have written a jQuery image resize script that works fine when the images are clicked using the handler, <code>$('img').click (function(){</code>. (see example <a href="http://jsfiddle.net/sambeckhamdesign/veQkL/25/" rel="nofollow">here</a>)</p>
  
  <p>However I want to set it to run as soon as the page is loaded but <code>$('img').load(function(){</code> doesn't work. (see example <a href="http://jsfiddle.net/sambeckhamdesign/ZVt4r/" rel="nofollow">here</a>) I'm assuming it's because it's running the script after the DOM has loaded but not the images. But If I'm honest I don't know.</p>