jQuery OnClick not firing my event
<p>I have a jQuery which is like this:</p>

<pre><code>&lt;script type="text/javascript"&gt;
   $(document).ready(function () {

       $("#txtAgentName").click(function (event) {

           alert("I am ready!");

       });

   });
&lt;/script&gt;
</code></pre>

<p>What I am assuming that this should fire if I click on my textbox txtAgentName. But it is not happening. </p>

<p>This is my textbox markup:</p>

<pre><code> &lt;asp:TextBox ID="txtAgentName" runat="server" onclick="Event();"&gt;&lt;/asp:TextBox&gt;
</code></pre>

<p>However, when I am doing this on my Javascript:</p>

<pre><code>function ShowTime() {
         alert('&lt;%= DateTime.Now.ToString() %&gt;');
       }
</code></pre>

<p>and calling this ShowTime from my TextBox OnClick event, then it is firing up. Dont know what I am doing wrong here :(</p>
