insert html before div jquery code example
Example 1: append before jquery
$( "h2" ).insertBefore( $( ".container" ) );
Example 2: add html after div jquery
$( ".inner" ).after( "<p>Test</p>" );
$( "h2" ).insertBefore( $( ".container" ) );
$( ".inner" ).after( "<p>Test</p>" );