Re: sub-selection with $

Nicolas Terray
2006-03-15T10:45:25Z

Hi oo00oo (!)

"name" is not a standard attribute for li elements.
You should use class instead.

Then with prototype :
var my_elements = document.getElementsByClassName(''li0'');

Hope this helps,
Nicolas Terray

On 3/15/06, oo00oo <oo00oo-GANU6spQydw@public.gmane.org>
wrote:
> Hello,
>
> I have 2 navigations ( mainnav and subnav ) with 2 lists
> List have same names ( li0 li1 li2 )
>
> What is the best way to select li1 of subnav with prototype 1.4 in this
> case ? I just want to hide/show it
>
> Thanks
>
>
>
> <li
name="li2">
>
>
>
>
>
> <li