It's funny how you think you've perused the docs to their end and in
fact you haven't.

Works like charm.  Thank you.  One more block of my castle is
complete :)

On Mar 30, 5:26 pm, Perrin Perrin <[email protected]> wrote:
> Perhaps try taking a look 
> at:http://www.mootools.net/docs/Element/Element#Elements:filter
> This may work?
> this.contentElements.filter(':contains("'+word+'")').removeClass('hidden');
>
>
>
> On Mon, Mar 30, 2009 at 6:19 PM, rpflo <[email protected]> wrote:
>
> > this.contentElements is a bunch of <li>s in a class.
> > keyArray is whatever words are in an input field.
>
> > trying to do a basic filter.
>
> > This works:
>
> > keyArray.each(function(word){
> >     $$('#list li:contains("'+word+'")').removeClass('hidden');
> > }.bind(this));
>
> > This does not, but I'd really like it to :)
>
> > keyArray.each(function(word){
> >     $$(this.contentElements+':contains("'+word+'")').removeClass
> > ('hidden');
> > }.bind(this));
>
> > Obviously my selector is wrong, any ideas?  Thank you!

Reply via email to