Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Jqurey append html as text to textarea Re: Jqurey append html as text to textarea

#106506
Taufik Nurrohman
Participant
$(function() {
$('#answer2').click(function() {
var content = '✓ TADAAA!';
$('textarea').append(
content
.replace(/&/g, '&')
.replace(/ .replace(/>/g, '>')
);
});
});

http://jsfiddle.net/tovic/kMmVU/3/