$$('.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