$("#Button1").click(function(){//code here}
$(document).ready(function(){// Write code here});
<html xmlns="http://www.w3.org/1999/xhtml" > <head><title>Hello World Alert box using JQuery</title><script language="javascript" src="jquery-1.2.6.js" type="text/javascript"></script><script type="text/javascript">$(document).ready(function(){$("#Button1").click(function(){alert("HELLO WORLD!");});});</script></head><body><form runat="server"> <asp:Button ID="Button1" runat="server" Text="Click me" /> </form></body></html>
<script type="text/javascript" src="jquery-1.2.6.js"> </script>