1.after() puts the element after the element
2
3using after:
4
5$('.a').after($('.c'));
6
7after execution:
8
9<div class='a'>
10 <div class='b'>b</div>
11</div>
12<div class='c'>c</div> //<----this will be placed here
1//Use Jquery
2//Include this in your <head>
3<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
4
5// This over writes any existing data in the element
6// To prevent you can just create a new div under your element
7
8<yourElement>
9 <div id='<your element id here>'>
10 <!--Your Jquery will be rendered here-->
11 </div>
12</yourElement>
13
14$('#<your element id here>').html(data);