[jQuery] Re: how to append() to a textarea

2007-12-04 Thread Karl Swedberg
I just tried this in Firebug, and it worked fine, updating the text in the textarea: var tVal = $('textarea').val(); $('textarea').val(tVal + ' it works!'); You'll most likely want to use a selector that is more specific than $ ('textarea'), and in your script you'll have to wrap a document

[jQuery] Re: how to append() to a textarea

2007-12-04 Thread David Serduke
Using val() won't change the generated source. It only changes the current value in the input element. For example, if you type a letter in the textarea it doesn't change the generated html even though the textarea value has changed. So since your form is hidden maybe it is changing and you can

[jQuery] Re: how to append() to a textarea

2007-12-04 Thread cfdvlpr
OK, I tried $("#utmtrans").val($("#utmtrans").val() + 'test'); Here's the HTML before this gets called: And here's what I see when I "view generated source" with the firefox add on web developer toolbar.:

[jQuery] Re: how to append() to a textarea

2007-12-03 Thread David Serduke
I'd try $("textarea").val($("textarea").val() + txt); David On Dec 3, 4:27 pm, cfdvlpr <[EMAIL PROTECTED]> wrote: > append() doesn't seem to work. I also tried this function that was > mentioned in another thread here by John and that doesn't seem to work > for me either. Anyone else got thi