Look at the exemple : http://jsfiddle.net/neilime/nEap7/1/

On 12 fév, 12:36, Neilime <[email protected]> wrote:
> This solution doesn't works good
>
> Exemple :
>
> <div id="test">this is test content</div>
>
> elementTextTest(document.id('myElement'),'^=','test') return false;
> $$('div#test:contains("test")') return the div element.
>
> On 11 fév, 18:54, Fábio M. Costa <[email protected]> wrote:
>
> > $$('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