On Sep 17, 2:34 pm, jazzle <[EMAIL PROTECTED]> wrote:
> How do I select items with a class beginning with a given string?

This might (indirectly) do what you're trying to do:

http://docs.jquery.com/Selectors/attributeContains#attributevalue

but that searches IN strings (not anchored to the beginning) and its
behaviour in the face of attributes with multiple values (e.g. class)
is not documented, so you'd need to try it to find out if it's
suitable for what you're doing.

There is also:

http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue

but its behaviour regarding space-separated values is also not
documented, so you'd need to try it out.

If all else fails, you could certainly use the filter() function to
implement this. Or maybe even a custom selector?

Reply via email to