Originally Posted by rnd me
if you want to reach other data, give the data a name and point your handler to that name.
if you are adding many handlers to many elms in a loop, it can be slightly complicated.
in that case, i would use Array.map instead of the for, and your variables will magically line up when the handler fires later because map() uses a function, and the function has its own scope, unlike a for-loop routine where all handlers inherit the same scope.
Would you happen to have a brief example of the code that would accomplish this? Something simple with the extra parameter(s).
Preferably without using JQuery so I could understand the basics.