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?
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?
You use the prepend
function:
$('body').prepend('My HTML elements');