<html>
<head>
<script src="../../ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
var x = 0;
$("p").click(function(event){
$("p").animate({fontSize: "+=5px"});
x++;
if (x >= 2) {
$(this).unbind(event);
}
});
});
</script>
</head>
<body>
<p style="font-size:20px;">Click this p element to increase its size. The size can only be increased 2 times.</p>
</body>
<!-- Mirrored from www.w3schools.com/jquery/tryit.asp?filename=tryjquery_event_unbind_eventobj by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:14:04 GMT -->
</html>