<!DOCTYPE html>
<html>
<head>
<title>jQuery before() method</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("div").before("<p>New text come before of the selected element.</p>");
});
});
</script>
</head>
<body>
<div>
<p>First paragraph start here...</p>
</div>
<button>Click Me</button>
</body>
</html>