jQuery pass more parameters into callback
The solution is the binding of variables through closure. As a more basic example, here is an example function that receives and calls a callback function, as well as an example callback function: function callbackReceiver(callback) { callback(“Hello World”); } function callback(value1, value2) { console.log(value1, value2); } This calls the callback and supplies a single argument. … Read more