javascript add element after element code example
Example 1: insert element after element javascript
function insertAfter(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);
}
Example 2: js append html in div after
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<yourElement>
<div id='<your element id here>'>
<!--Your Jquery will be rendered here-->
</div>
</yourElement>
$('#<your element id here>').html(data);