2011-09-30 103 views

回答

0
var myTextarea = ... // select the text area 
$(myTextarea).html('The text I want to insert'); // this will replace the existing contents 

將文本追加到textarea的,使用此:

$(myTextarea).html($(myTextarea.html() + 'The text I want to insert');