I want to store the function reference in a variable and re use it by calling wherever required. Suppose I have a click bound function like this:
var clickEvent = $('#mode').click(function () {
alert("Hello");
});
And I want to reuse it like this:
//call somewhere
clickEvent();
But it is showing an error clickEvent is not a function, why ?