insert element js jquery code example
Example 1: jquery add div element
$('#someParent').append('<div>I am new here</div>');
Example 2: how to add id in jquery
var pdiv = $( "p" );
pdiv.add( "div" ); // WRONG, pdiv will not change
$('#someParent').append('<div>I am new here</div>');
var pdiv = $( "p" );
pdiv.add( "div" ); // WRONG, pdiv will not change