jquery append to ID code example
Example 1: jquery add div element
$('#someParent').append('<div>I am new here</div>');
Example 2: jquery append
$("p").append(" <b>Appended text</b>.");
Example 3: id to id for append jquery
var e = $('<div style="display:block; float:left;width:'+width+'px; height:'+height+'px; margin-top:'+positionY+'px;margin-left:'+positionX+'px;border:1px dashed #CCCCCC;"></div>');
$('#box').append(e);
e.attr('id', 'myid');