You cannot put a div in textarea, but sometimes you need to do this. The good news is that you can do it the other way using the contenteditable property of the elements. how
<div contenteditable="true" style="min-height:50px; width:300px;" id="txtDiv"> </div>
This Div will behave exactly like Textarea, but you can add whatever you want. And remember when you want to capture data from the inside in jquery
var ContentofDiv = $('#txtDiv').html();
Now you can add children like others.
source share