<!DOCTYPE html>
<html>
<head>
<title>jQuery text() method</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$(".third").text("Last paragraph");
});
});
</script>
</head>
<body>
<div>
<p class="param first">First paragraph start here...</p>
<p class="param second">Second paragraph start here...</p>
<p class="param third">Third paragraph start here...</p>
</div>
<button>Click here to call text() method</button>
</body>
</html>