更新时间:2023-11-14 18:12:58
只需 append()
文本节点:$ b
$ b
$('#replyBox')。append(quote);
How can I add text from a DIV to a textarea?
I have this now:
$('.oquote').click(function() {
$('#replyBox').slideDown('slow', function() {
var quote = $('.container').text();
$('#replyBox').val($('#replyBox').val()+quote);
// Animation complete.
});
});
Just append()
the text nodes:
$('#replyBox').append(quote);