How can i identify a label on javascript?
I create labels dynamically and i add a onclick event for all of them.
But i need to identify which label has been clicked.
I tried to do this:
labelName.oncli ck = function(){func tionName(nameOf Label);}
but he don´t add the parameter for each label..the function always get the last parameter add.
sorry for the bad english,
thanks
I create labels dynamically and i add a onclick event for all of them.
But i need to identify which label has been clicked.
I tried to do this:
labelName.oncli ck = function(){func tionName(nameOf Label);}
but he don´t add the parameter for each label..the function always get the last parameter add.
sorry for the bad english,
thanks
Comment