How to call JQuery from ASP Button?
<p>I have been trying to call JQuery code from <code>Button1</code> but whenever I click the button nothing happens. I suspect there is something is missing here.</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
    &lt;title&gt;&lt;/title&gt;
    &lt;script type="text/javascript" src="Scripts/jquery-1.4.1.js"/&gt;
    &lt;script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"/&gt;
    &lt;script type="text/javascript"&gt;
    $(document).ready(function(){
        $("#Button1").click(function () {
            alert("Hello");
         });
    });
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div runat="server"&gt;
&lt;asp:Button ID="Button1" runat="server" Text="Button" /&gt;    
    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Please Help me as I am new to Jquery with ASP</p>

<p><b> Update! 
Rendered HTML </b></p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;&lt;title&gt;

&lt;/title&gt;
    &lt;script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"/&gt;
    &lt;script type="text/javascript"&gt;
        $(document).ready(function () {
            $("#B1").click(function () {
                alert("Hello");
            });
        });
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

    &lt;form name="form1" method="post" action="Default.aspx" id="form1" enctype="multipart/form-data"&gt;
&lt;div&gt;
&lt;input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTExNzQxODc4NzgPZBYCAgMPFgIeB2VuY3R5cGUFE211bHRpcGFydC9mb3JtLWRhdGEWAgITDzwrAA0AZBgBBQlHcmlkVmlldzEPZ2S859s2HXOd3dMN1a3AFBBA24YTWA==" /&gt;
&lt;/div&gt;

&lt;div&gt;

    &lt;input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBwLCh8GMCAKl1bK4CQK1qbSRCwKM54rGBgK7q7GGCALWlM+bAgLe7+btDB1tn9tYIpN00SJIvx3i3VxCTOP7" /&gt;
&lt;/div&gt;


    &lt;input type="submit" name="B1" value="Button" id="B1" /&gt;

    &lt;/form&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
