Actually jQuery supports a subset of of regular expression-like filters.
Check out:

http://docs.jquery.com/Selectors

and look at the 'Attribute Filters'

This would achieve the case you need with

jQuery("input[name*='name']")

Thatcher

On Sun, Jun 29, 2008 at 1:31 AM, Ramanathan RV <[EMAIL PROTECTED]>
wrote:

> How about allowing regex in jquery selectors?
> For instance $("input[name="*name"])
> to select
> <input name="firstname">
> <input name="lastname">
>
> Typically in forms, most of the components are bundles. Like Names,
> Addresses, etc. One use case that I could think of is setting validators on
> all these fields would be easier with support for regex.
>
> --
> Thanks
> Ram




-- 
Christopher Thatcher

Reply via email to