jquery insert new div before other div code example
Example: append before parent jquery
$('ElementBeforeYouWantToInsert').prepend('<div>the element you want to insert</div>');
$('ElementBeforeYouWantToInsert').prepend('<div>the element you want to insert</div>');