how to append element on top javascript code example Example: append to top javascript $('div').prepend('<p>Bla bla bla');