<html>
<head>
<script src="https://libs.baidu.com/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
return "Hello world!";
});
$("button").click(function(event){
$("p").html(event.result);
});
});
</script>
</head>
<body>
<button>Click me to display event.result</button>
<p>This is a paragraph.</p>
</body>
</html>