You can use the "contains" pseudo-class.
$$('a:contains("my text")')
--
Fábio Miranda Costa
front...@portalpadroes
Globo.com
*github:* fabiomcosta
*twitter:* @fabiomiranda
*ramal:* 6410
On Mon, Oct 18, 2010 at 10:21 AM, Andrea Dessì <[email protected]> wrote:
> Hi all :)
>
> I've started with Slick and MooTools 1.3 just today and here
> the first question.
>
> With the 1.2, I used to do:
> $("myparent").getElement("a[text=XXX]");
>
> and now with 1.3, I'm trying this:
> document.id("myparent").getElement("a[^XXX$]");
>
> but sometimes I'm not getting the right one.
> is this the right syntax?
>
> Thanks,
> Andrea
>
>