<!DOCTYPE html>
<html>
<head>
<title>jQuery die() method</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("p").live("click", function(){
alert('clicked');
});
$("button").click(function(){
$("p").die();
});
});
</script>
</head>
<body>
<div>
<p>first paragraph text</p>
<p>second paragraph text</p>
</div>
<button>Click here to remove above p element "click" event handler</button>
</body>
</html>