append html to element javascript as first child code example
Example 1: javascript append how first element
// 2018+ Version
parentElement.prepend(newFirstChild)
Example 2: append to top javascript
$('div').prepend('<p>Bla bla bla');
// 2018+ Version
parentElement.prepend(newFirstChild)
$('div').prepend('<p>Bla bla bla');