Monday, April 27, 2009

[jQuery] Re: Is it possible to select on multiple attribute values?

Thanks all for the great suggestions! I think I'm going to use
George's solution for now (it's easy, if slightly verbose), but when I
have a free moment I'm going to follow mkmanning's advice and look in
to making a custom selector.

Jeremy

On Apr 26, 12:03 pm, George Adamson <George.Adam...@SoftwareUnity.com>
wrote:
> > so the name=someName has to be repeated for each value.
>
> How about $("[name=someName]").filter("[value=someValue],
> [value=otherValue]") ?
>
> Cheers,
> George

No comments: