Clickable menu list?

Can you please give me a general idea on how I would implement getting the mouse click or tap events on text?

I am dynamically building a list. For example:

1 First things
2 second
3 blah
4 etc...

On a desktop I know how to get the keyboard input but how might I detect which item was clicked on? And would this same mechanism apply to the tap event on a smart phone?

Thanks!


Comments

Sign In or Register to comment.