I'd use filter in this case
$$('span').filter(function (el) {

  //
})

On Wed, Sep 2, 2009 at 4:30 PM, atwork8 <[email protected]> wrote:

>
> Hi,
>
> How do you escape characters in a selector? I can't find any info in
> the docs e.g.
>
> <span class="someValue:anotherValue">I am a span</span>
>
> alert($$('.someValue:anotherValue')[0].get('tag'));
> alert($$('.someValue\:anotherValue')[0].get('tag'));
> alert($$('.someValue\\:anotherValue')[0].get('tag'));
> alert($$('.someValue\3A anotherValue')[0].get('tag'));
> alert($$('.someValue\\3A anotherValue')[0].get('tag'));
>
> I can't seem to get it to work with any of the above formats and it is
> a valid selection. Any help would be appreciated.
>
> Thanks
>
>


-- 
http://tbela99.blogspot.com/

fax : (+33) 08 26 51 94 51

Reply via email to