<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Tiêu đề</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$(function(){
    $('body').delegate('p','click',function(){
        alert("Sự kiện click được gọi");
    });
	
    $('.undelegate').click(function(){
        $('body').undelegate('click');
        //$('body').undelegate();
    }); 
});
</script>
</head>

<body>
<p>Click xuất hiện alert!</p>
<button class="undelegate">.undelegate()</button>
</body>
</html>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.