<title>jQuery prepend() Method to Add Content At The Beginning of the Selected Element</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
$(document).ready(function(){
$('.myaddbtn').click(function(){
$("p").prepend("<em>Welcome to TutorialDeep!</em> ");
<h2>jQuery prepend() Method to Add Content At The Beginning of the Selected Element</h2>
<p>Learn jQuery with tutorials and live examples.</p><br>
<button type="button" class="myaddbtn">Click to Add Content</button>