How are you creating the list elements?

I would do it like this personally

http://mooshell.net/5GsWA/6 

-----Original Message-----
From: Jake [mailto:[email protected]] 
Sent: Sunday, 22 November 2009 5:09 PM
To: MooTools Users
Subject: [Moo] Capturing information from clicks on unordered list.

I've hit a wall in my quest to figure out how to acquire attribute
data from an unordered list.

Here's what I'm doing:

I have a script that dynamically creates an unordered list as a
navigation menu.

The only way I can think of to get click information from this list is
if there is a specific set number of list items, and have click events
for each one.

Say a list of 10 items would mean 10 separate click event handlers.

20 list items would mean 20 event handlers.

This doesn't seem very elegant to me. But I'm a MooTools noob, so
perhaps there is a better way?

Reply via email to