JavaScript Agregar elemento arriba
$( "<p>Test</p>" ).insertBefore( ".inner" );
mohammad ghari
$( "<p>Test</p>" ).insertBefore( ".inner" );
// The Node.insertBefore() method inserts a node before a
// reference node as a child of a specified parent node.
let insertedNode = parentNode.insertBefore(newNode, referenceNode)