Jquery not finding element within a table
<p>Jquery is unable to find any element within my table - here is the htmlcode. if I don't specify and element name #btnLogin it attaches the click event to all the elements. When i try to find a specific element it just doesn't pickup.</p>

<pre><code>&lt;script&gt;
    $("#btnLogin").click
    (   function()
        {
            alert('Hi');
        }
    );
&lt;/script&gt;
&lt;table width="290px" border="1" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border-style:solid; border: 1px solid; "&gt;
  &lt;tr&gt;    
    &lt;td width="100%" align="left" valign="top" bgcolor="#FFFFFF" style="padding:5px"&gt;&lt;table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF"&gt;
      &lt;tr&gt;
        &lt;td width="100%" bgcolor="#9B2301"  style="padding:5px"&gt;&lt;span class="text2" style="padding:5px"&gt;Login...&lt;/span&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td style="padding-top: 8px; padding-left:10px;"&gt;
                &lt;input name=txtUserName id="txtUserName" style="border:1px solid #CCCCCC;" type="text"  value="Username"&gt;
                &lt;input name=txtPassword id="txtPassword" style="border:1px solid #CCCCCC;" type="text" value="Password"&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td valign="middle" style="padding-top: 5px; padding-left:10px;"&gt;
                &lt;input id="Check" Type=Checkbox style=" font-size:8px;" name="Remember"&gt;&amp;nbsp&lt;font style="color: #9B2301; font-weight:bold"&gt;Remember Me.&lt;/font&gt; | &lt;font style="color: #9B2301; font-weight:bold"&gt;&lt;a id="btnLogin" style="color: #666666; font-weight: normal;" href="#"&gt;Login&lt;/a&gt;&lt;/font&gt; 
        &lt;/td&gt;
      &lt;/tr&gt;
       &lt;tr&gt;
         &lt;td valign="middle" align=right style="padding-top: 5px; padding-right:15px;"&gt;
                &lt;input id="Login" Type="Button" style="font-size:11px; border:1px solid #CCCCCC" name="Login" Value="Login"&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>Any Assistance will be highly appreciated.</p>

<p>Thanks</p>
