jquery create element and append it to parent 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>');