I have an image and a text area.
I want to ouput the image in the text area using Jquery. However when I try, it just outputs the html instead of the image, how can I output the image to the text area:
var output = '';
output += '<img src="http://aux.iconpedia.net/uploads/286412642.png" />';
$('#textarea').html(output);
I have set up a jsfiddle in order to demonstrate the scenario and to illustrate what I have tried.
I know its called a *text*area for a reason, but am looking for a way to do this.
You can use
divwithcontentEditable="true"instead oftextarea.Look at here.