Hi,

> $(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');

try 

$('textarea').css("height",NHeight).slideDown('slow');

> });
> });

You should also consider to calculate NHeight outside your click-function:

$(document).ready(function() {
  var NHeight = ($("textarea").height()-40)+'px'
  $('.resize').click(function(){
    $('textarea').css("height","NHeight").slideDown('slow');
  )};
)};

Christof

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to