Olaf Bosch schrieb:
> Klaus Hartl schrieb:
>
>> First of all *before* switching to a new/massively changed API read the
>> changelog/blog post[1].
>
> Yes, i have, sorry i realese not that ID ar also a ATTR ;)
>
>> Try:
>> $(this).attr('id', 'area_'+i)
>
> Thanks all.
>
> Next Problem:
>
> $(textarea).css('height') give before 1.1 "110" now i became "110px"
> i would have 110 for summary 110+50
> must i strip the "px" self or give a JQuery-Way?
>
I think you have to parse it yourself...:
var h = parseInt($(textarea).css('height'));
You could also try this (if you like chaining better):
String.prototype.parseInt = function() {
var i = parseInt(this);
return !isNaN(i) && i || 0;
};
$(textarea).css('height').parseInt();
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/