Thanks Jan,

It's amazing how many times you can look over the docs and miss stuff
like that.

The match() is working exactly as I need.  Is there any reason to use
*= other than to be more down and dirty with my moo self?

On Apr 22, 4:08 pm, Jan Kassens <jankass...@gmail.com> wrote:
> $$('.elements[title*="word"]');
>
> should do the trick.
>
> On 22. Apr, 2009, at 3:58, rpflo wrote:
>
>
>
> > So I've got this:
>
> > var word = "blah";
> > var elements = $$('.elements');
> > var filteredElements = elements.filter(':contains("'+word+'")');
>
> > That looks inside the text of the thing, is there a way to have it
> > look at the title of the elements instead?
>
> > Here's some fake code to maybe get a better idea of what I'm looking
> > for:
>
> > var filtereElements = elements.filter('[title:contains("'+word+")]');
>
> --
> Jan - MooTools comitter
> twitter/blog:http://kassens.net

Reply via email to