Jquery change css property after appending an image
<p>im working with jquery. I appended an image into my div-element. it works great.
i want to change a css property (like max-heigth or width etc.) with a js-function.</p>

<p>but nothing works... i tried it with an image fix on the page (withouth appending before, strict in the html..) and that works...</p>

<p>does anybody has an idea??</p>

<p>my function looks like this:</p>

<pre><code>function makeBigger() {

 var origHeight = $("#articlePicture").css("max-height");
 var newHeight = parseInt(origHeight.replace("px", ""));

 newHeight+=25;
 newHeight+="px";

 $("#articlePicture").css("max-height", newHeight);
}
</code></pre>

<p>thanks!</p>

<p>edit: <strong>important to say: it doesn't work only with the appendet picture, firebug etc. everything tried - works!</strong></p>

<p>edit2: appending-function (kind of an easy version of it..):</p>

<pre><code>function appendThis(artikelNumber, pictureToAppend) {
        img="&lt;img src='"+pictureToAppend+"' alt='articlePicture' id='articlePicture' class='articlePicture' /&gt;";
        $('.article'+artikelNumber+'Text').append(img);
    }
</code></pre>
