<!DOCTYPE html>
<html>
<head>
<title>jQuery bind() method</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function(){
$("button").bind("click", {'text': "You clicked on button."}, function(e){
$("p").fadeToggle(1500);
alert(e.data.text);
});
});
</script>
</head>
<body>
<button>Click Me</button>
<div>
<p>First paragraph start here...</p>
</div>
</body>
</html>