Jquery code to resize images not working
<p>I am a total jquery newb and I have a deadline for this project so please don't laugh.</p>

<p>I am trying to make this jquery code work:</p>

<pre><code>function resize_images(){
   var def = $(".defx img").height(); // get the desired height

   $(".model").each(function() { // loop through all images inside model divs
       var images = $(this).find("img"); // find the image
       var height = images.height(); // find the image height
       if (height &gt; def){  images.css("height: "+def+"px !important"); } // if the image height is larger than the default add a css rule
   });  
}
</code></pre>

<p>Any ideas why it is not working?</p>
