jquery append element code example
Example 1: append before jquery
$( "h2" ).insertBefore( $( ".container" ) );
Example 2: jquery add div element
$('#someParent').append('<div>I am new here</div>');
Example 3: jquery append
$("p").append(" <b>Appended text</b>.");
Example 4: append to jquery
$("<span>Hello World!</span>").appendTo("p");
Example 5: jquery append html
$("p").append(" <b>You can write your Text Here </b>.");