jquery how to modify an image's attr
<p>How to modify an image's attr use jquery? I want set the <code>image's height</code> as the <code>window.height</code></p>

<p><a href="http://jsfiddle.net/wyCqT/" rel="nofollow">http://jsfiddle.net/wyCqT/</a></p>

<pre><code>&lt;script type="text/livescript"&gt;
$(document).ready(function(){
   var height = $(window).height();
   $('img').attr('height',height);
});
&lt;/script&gt;
&lt;img src="http://farm7.static.flickr.com/6124/6022097678_4477a09976_o.jpg" /&gt;
</code></pre>
