How can I add text from a DIV to a textarea?
I have this now:
$(\'.oquote\').click(function() { $(\'#replyBox\').slideDown(\'slow\', funct
Just append() the text nodes:
append()
$('#replyBox').append(quote);
http://jsfiddle.net/nQErc/
That should work. Better if you pass a function to val:
val
$('#replyBox').val(function(i, text) { return text + quote; });
This way you avoid searching the element and calling val twice.