How to append html element as a first element in an exist body using JQuery?

jquery

Solution

You use the `prepend` function:

$('body').prepend('My HTML elements');

Problem

I used `$('body').append('MY HTML elements')` but this code add these elements to the end of the body, i want to add as a first element inside the body. How to do that using JQuery?

Original source