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