how to add an element at the top of a div code example Example: append to top javascript $('div').prepend('<p>Bla bla bla');