SyntaxFix
Write A Post
Hire A Developer
Questions
in my case I did
function myFunc() { console.log('myFunc', $(this)); } $("selector").on("click", "selector", function(e) { e.preventDefault(); myFunc.call(this); });
properly calls myFunc with the correct this.
this