title: jQuery - get the width of an image
body: <p>I am trying to get the actual width of an image...here is the image in question</p>
  
  <pre><code>&lt;img src="upload/&lt;?php echo $array['image'] ?&gt;" height="200" class="active" /&gt;
  </code></pre>
  
  <p>and this what I have tried in jQuery</p>
  
  <pre><code>$(window).bind('load', function() {  
      var img_width = $("#slideshow").find("img").width();
      $("#slideshow img").css("width", img_width);
      alert(img_width);
  });
  </code></pre>
  
  <p>the alert returns 255 for every images i've tried this with, which is the width of the div slideshow. with the height of these images all being 200 they will have different widths, my question is, how do I get these widths?</p>
  
  <p>Thanks,
  J</p>