tags:

views:

29

answers:

1

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?

+3  A: 

You use the prepend function:

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