Christof Donat schrieb:
>> I can not the Textarea give any ID or CLASS, to establish understanding ;)
>
> Yes you can:
Yes, now :)
This is my script:
$(document).ready(function() {
$('textarea').each(function(i) {
$(this).id('txtarea_'+i).
after('<span class="gro" id="gro_'+i+'">größer<\/span>
<span class="kle" id="kle_'+i+'">kleiner<\/span>');
});
$('.gro').click(function() {
var txt = $('#txtarea_'+this.id.substr(4));
var NHeight = ($(txt).height()+60)+'px';
$(txt).css({height: NHeight,background: "#c00"});
});
$('.kle').click(function() {
var txt = $('#txtarea_'+this.id.substr(4));
var NHeight = ($(txt).height()-60)+'px';
$(txt).css({height: NHeight,background: "#0c0"});
});
});
--
Viele Grüße, Olaf
-------------------------------
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
-------------------------------
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/