I am recently trying to send multiple values to a javascript function, something like:
<a onclick=myfunction(valA)><img onclick=myfunction(valB)></a>
from what I know, that is not possible, I was wondering though if there is any way to send those values to a third function. This function could be in a "listening" mode and returns the values, but I really dont know where to start.
N.B
I know is possible to do something like onclick=myfunction(valA,valB), but I do need something like:
<a onclick=myfunction(valA)><img onclick=myfunction(valB)></a>
Thanks in advance for your help.
Emiliano