$$('mytag#myid.myclass:contains("text")')

--
Fábio Miranda Costa
frontend@portalpadroes
Globo.com
*github:* fabiomcosta
*twitter:* @fabiomiranda
*ramal:* 6476



On Fri, Feb 11, 2011 at 3:39 PM, Neilime <[email protected]> wrote:

> Hi,
>
> With mootools 1.2, i use Selectors.Filters.byAttribute to test if
> element contains specific text :
>
> var elementTextTest = function(eElement,sOperator,sValue){
>      return
> Selectors.Filters.byAttribute(eElement,'text',sOperator,sValue);
> }
>
> var bRightText =
> elementTextTest(document.id('myElement'),'^=','test');
>
> But now mootools uses Slick so my function is out, so i'm looking for
> a new way to do that (by using Slick maybe).
>
> If somebody have any idea, i'm impatient to know it.

Reply via email to