append to front jquery code example
Example 1: prepend element jquery
$( ".inner" ).prepend( "<p>Test</p>" );
Example 2: appendBefore
let insertedNode = parentNode.insertBefore(newNode, referenceNode)
$( ".inner" ).prepend( "<p>Test</p>" );
let insertedNode = parentNode.insertBefore(newNode, referenceNode)