[jQuery] Height overwrite

[jQuery] Height overwrite

Hello @ all,
this works not for me, what to do?
<script type="text/javascript" src="jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var THeight = $("textarea").height();
var Diff = 40;
$('.resize').click(function(){
NHeight = (THeight + Diff);
NHeight = (NHeight+"px")
alert (NHeight);
$('textarea').css("height","NHeight").slideDown('slow');
});
});
</script>
</head>
<body>
<textarea></textarea>
<a href="#" class="resize">höher</a>
</body>
</html>
NHeight is set the correct Height, see alert, the CSS works not :(
Thanks,
--
Viele Grüße, Olaf
-------------------------------
olaf.bosch@t-online.de
http://olaf-bosch.de
www.akitafreund.de
-------------------------------
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/