I have a function call in my script that contains a callback function call when calling fadeOut. I am trying to pass a parameter to a paren't function in a callback function, but I cannot get it to work.
General script structure:
function aFunction(aVar){ anElement.fadeOut(200, function(){ someFunctionCall(aVar); }); }
The call is executed correctly, but the variable is not passed. This is probably the problem of defining a variable, but I do not quite understand this concept.
source share