jquery add text before text code example
Example 1: append before jquery
$( "h2" ).insertBefore( $( ".container" ) );
Example 2: append before parent jquery
$('ElementBeforeYouWantToInsert').prepend('<div>the element you want to insert</div>');
$( "h2" ).insertBefore( $( ".container" ) );
$('ElementBeforeYouWantToInsert').prepend('<div>the element you want to insert</div>');