<html lang="en">
<head>
<title>jQuery insertAfter() Method Insert Content After the Selected Element</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
$('.mybtn').click(function(){
$("<b>This is the bold content. </b>").insertAfter("p");
});
});
</script>
</head>
<body>
<h2>jQuery insertAfter() Method Insert Content After the Selected Element</h2>
<p>This is my paragraph.</p><br>
<button type="button" class="mybtn">Click to Insert Content</button>
</body>
</html>