Home › Forums › JavaScript › Jqurey append html as text to textarea › Re: Jqurey append html as text to textarea
July 21, 2012 at 12:34 am
#106506
Participant
$(function() {
$('#answer2').click(function() {
var content = '✓ TADAAA!';
$('textarea').append(
content
.replace(/&/g, '&')
.replace(/
.replace(/>/g, '>')
);
});
});