append first code example
Example 1: javascript append how first element
// 2018+ Version
parentElement.prepend(newFirstChild)
Example 2: prepend element jquery
$( ".inner" ).prepend( "<p>Test</p>" );
// 2018+ Version
parentElement.prepend(newFirstChild)
$( ".inner" ).prepend( "<p>Test</p>" );