Doh! I meant to put the @ in there. I just forgot. Maybe that's another reason it's not working, but I'll bet that I've got to have the selector switched around the way you and Joel recommend.

Chris

Aaron Heimlich wrote:
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] <mailto:[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] <mailto:[email protected]>
    http://jquery.com/discuss/




--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://aheimlich.freepgs.com <http://aheimlich.freepgs.com>
------------------------------------------------------------------------

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

--
http://www.cjordan.info

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to