I am trying to call a function with a param:
This is the function:
var showCustomTooltip = function(e, param) {
param.show(function() {...});
};
and this is how I am trying to call it:
$t1btn.on('click', {param: $('.t1')}, showCustomTooltip);
But is the error I am getting in the console:
Uncaught TypeError: Cannot read property 'show' of undefined
What am I doing wrong?
$(document).ready()?console.logtheparaminside function call