I need to change a custom function variable in an anchor link ecample:
<a id="myID" onClick="myFunction(var1, var2, var3);" />
I know I can use $('a#myID').attr('onClick'); to get contents of the onClick event, but how do I change the var3 variable inside that custom function?
Change it around:
then in JavaScript: