You might try rearranging the selector like this
[EMAIL PROTECTED]'foo']:hidden
Pseudo selectors like ":hidden" are usually placed at the end of a selector
(though I'm not sure whether this is required or not).
Also, for attribute selectors, you must use the @ like I did. This is
because of some ambiguities that arise from jQuery supporting both XPath
selectors and CSS selectors.
[EMAIL PROTECTED] is the XPath selector for "an input element that has an
attribute called 'name'"
input[name] is the CSS selector for the very same thing, but in XPath
input[name] means "an input element that contains a name element"
On 2/5/07, Christopher Jordan <[EMAIL PROTECTED]> wrote:
Hi folks,
I'm just trying to rule out a possible problem in my debugging. Does this:
$("input:hidden[name=foo]");
select all hidden inputs with the name "foo"? or can I not mix the
selectors in such a way?
Thanks,
Chris
--
http://www.cjordan.info
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/