[jQuery] Re: Collect all IDs in a DOM & then act on specific ones

2009-03-27 Thread Eric Garside
You would probably have better luck assigning non-styling classes to the elements to search on instead of doing the regex check. So instead of finding all tags with id="edit-field-*", find all tags with the "edit-field" class On Mar 27, 4:30 pm, NapkinLinks wrote: > Thanks James! > > On Mar 27,

[jQuery] Re: Collect all IDs in a DOM & then act on specific ones

2009-03-27 Thread NapkinLinks
Thanks James! On Mar 27, 12:49 pm, James wrote: > var editIDs = $("[id^=edit-field-]"); > > This will have a set of elements (regardless of type: div, span, etc.) > that have id's that begin with 'edit-field-' > > On Mar 26, 8:35 pm, NapkinLinks wrote: > > > Hi all. > > > Hopefully this questio

[jQuery] Re: Collect all IDs in a DOM & then act on specific ones

2009-03-27 Thread James
var editIDs = $("[id^=edit-field-]"); This will have a set of elements (regardless of type: div, span, etc.) that have id's that begin with 'edit-field-' On Mar 26, 8:35 pm, NapkinLinks wrote: > Hi all. > > Hopefully this question is not so dumb that it will be ignored > completely. > > I would