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