Hi,

I have :

<nav id="navigation" role="navigation">
  <ul id="menu" role="menubar">
    <li title="Hello World!"><a href="#"><span>Home</span></a></li>
    <li attr="parent"><a href="#"><span>Help</span></a>
        <ul>
         <li><a href="#" role="menuitem"><span>sub1</span></a></li>
         <li><a href="#" role="menuitem"><span>sub2</span></a></li>
       </ul>
    </li>
</nav>



$$('[attr="parent"]').each(function (elt) {
Event.observe(elt,'mouseover',respondTo);
});

function respondTo() {
  trace('ok');
}

My problem is that "sub1, sub2" are link to event.observe.
I'd like to have only "help" who will link with event.observe.

How do I do for separate the parent and children element ?

Best regard.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to