Once preventDefault();
is called, how can I invoke that event that was just prevented?
For example:
$("a").click(function(e){
setTimeout(function(){
e.huh? // run original function
},5e3);
});
Once preventDefault();
is called, how can I invoke that event that was just prevented?
For example:
$("a").click(function(e){
setTimeout(function(){
e.huh? // run original function
},5e3);
});
This will work
$("a").one("click", function (e) {
e.preventDefault();
var elem = this;
setTimeout(function () {
elem.click();
}, 2000);
});