[jQuery] append() and TEXTAREA

[jQuery] append() and TEXTAREA

I've previously used append() to add text to a TEXTAREA. I noticed (at
least under FF 1.5) that the jQuery append() function would cease to add
text to the textarea if you give the textarea focus (click on it), add
some text, and then run the append() function. So then I tried using
html() with the same result. TEXTAREA's however are linked to .value,
and obviously using jQuery's val() would overwrite any existing text.
So, I got around this by using basic DOM scripting shown below;
var str = '[['+($("#field").val())+(($("#default").val() == '')? '' :
'|'+$("#default").val())+']]';
$("#myTextArea").get(0).value += (str);
I think having a jQuery appendVal() function would be bogus too -- as it
seems to be a less used, more to remember function. Perhaps the append()
function could be altered to detect a textarea & update it's value as
above [using domManip()?]?
Just a thought...
~ Brice
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/