$("#btn1").on("click", function(){ $("#block2").load("somepage.html"); });
<button id='btn2'>Alert</button> <script> $("#btn2").on("click", function(){ alert("yes"); }); </script>