jquery prepend code example
Example 1: prepend element jquery
$( ".inner" ).prepend( "<p>Test</p>" );
Example 2: append to top javascript
$('div').prepend('<p>Bla bla bla');
Example 3: jquery append
$("p").append(" <b>Appended text</b>.");
Example 4: appendBefore
let insertedNode = parentNode.insertBefore(newNode, referenceNode)