jQuery
New Wave Javascript
discuss » Bug: $("#password") and password input elements
Posted: Thu Mar 16 15:36:40 EST 2006
From: Klaus Hartl <
office at stilbuero.de
>
Hi all,
I just found out, that when you use password input elements and use an
id like "password" for one, $() returns a wrong result. I guess id and
type messes somehow up here.
$("#password") then returns two objects...
Here's a file to demonstrate that behavior:
http://stilbuero.de/demo/jquery/id_selector_bug.htmlIf you happen to run into such a situation, the following does work
correctly and returns one object:
$("input[@id='password']")
Regards,
Klaus