jquery create a div then add elements to it code example
Example 1: jquery add div element
$('#someParent').append('<div>I am new here</div>');
Example 2: create an element jquery
$('<div>hello</div>').appendTo('#parent');
$('#someParent').append('<div>I am new here</div>');
$('<div>hello</div>').appendTo('#parent');