append previous in jquery code example
Example 1: append before jquery
$( "h2" ).insertBefore( $( ".container" ) );
Example 2: appendBefore
let insertedNode = parentNode.insertBefore(newNode, referenceNode)
$( "h2" ).insertBefore( $( ".container" ) );
let insertedNode = parentNode.insertBefore(newNode, referenceNode)