Magnús Örn Gylfason schrieb:
> Ok, but according to the jquery documentation "[EMAIL PROTECTED]" is a valid
> selector, as in:
>
> $("//[EMAIL PROTECTED]")
>
> to find all input elements that are checked.
>
> I tried that specific approach
>
> $("//[EMAIL PROTECTED]")
>
> and it still only finds "three".
The problem here may be that checked is a special attribute that
defaults to true when specified without an actual value. Try this and
check the results:
<input check checked />
$("input")[0].check
$("input")[0].checked
$("input")[0].getAttribute("check")
$("input")[0].getAttribute("checked")
My results:
undefined
true
""
""
--
Jörn Zaefferer
http://bassistance.de
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/