Link JQuery click methodto Button click event
<p>On my web page I have a button, and some JQuery code.  The problem is that when I click the button, the JQuery code is not executed.  Clicking the button still does a postback, and seems to ignore the JQuery code.
Here is my button:</p>

<pre><code>&lt;button id="btnCancel" class="button" runat="server" &gt;&lt;span&gt;Cancel&lt;/span&gt;&lt;/button&gt;
</code></pre>

<p>Here is my JQuery Code:</p>

<pre><code> $(document).ready(function () {
    $('#btnCancel').click(function () {
        alert('hello');
    });
});
</code></pre>

<p>what I would like to achieve is that when the button is clicked, a message must be displayed showing "Hello".
Am I missing something here?</p>
