title: jQuery-Ajax get width of Image inside of Ajax-Container
body: <p>I have created a page with Ajax function (jQuery &amp; PHP).
  My problem is when I load content via Ajax in my page. I want to read  width of images placed inside of Ajax-container.</p>
  
  <p>I noticed something quite remarkable.</p>
  
  <p>My script:</p>
  
  <pre><code>&lt;script&gt;
   $(window).ready(function () {
    var bildBreite = $("#wrapper &gt; #target-image").width();
     alert(bildBreite);
    $("#wrapper &gt; #image-wrapper").css({"width": bildBreite});
   });
  &lt;/script&gt;
  </code></pre>
  
  <p>It does not work, but when I insert alert ("load"); then work it.</p>
  
  <pre><code>&lt;script&gt;
   $(window).ready(function () {
    alert("Load");
    var bildBreite = $("#wrapper &gt; #target-image").width();
     alert(bildBreite);
    $("#wrapper &gt; #image-wrapper").css({"width": bildBreite});
   });
  &lt;/script&gt;
  </code></pre>
  
  <p>What happens here, how can I read the image width?</p>