Insert element as a first child with jQuery .Maui 6 years ago $("#mydiv").prepend("<div class='child'>.Maui is awesome!</div>");