hi try this example, this might help you.
<script type="text/javascript">
$(document).ready(function(){
$("#<%=txt_comments.ClientID%>").blur(function(){
if(this.val() != "")
{
creatediv('DV_Moving', 'your data inside the DIV', 'width', 'height');
}
});
});
function creatediv(id, html, width, height) {
var newdiv = document.createElement('div');
newdiv.setAttribute('id', id);
if (width) {
newdiv.style.width = 300;
}
if (height) {
newdiv.style.height = 300;
}
newdiv.style.background = "#00C";
newdiv.style.border = "4px solid #000";
if (html) {
newdiv.innerHTML = html;
} else {
newdiv.innerHTML = "nothing";
}
document.body.appendChild(newdiv);
}
</script>