<!DOCTYPE html>
<html>
<head>
<title>jQuery live() 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");
});
});
</script>
</head>
<body>
<p>Click or hover on below text it will trigger live() method</p>
<p style="border: 1px solid #000;">first paragraph text</p>
</body>
</html>