How to trigger an event after using event.preventDefault()
Nope. Once the event has been canceled, it is canceled. You can re-fire the event later on though, using a flag to determine whether your custom code has already run or not – such as this (please ignore the blatant namespace pollution): var lots_of_stuff_already_done = false; $(‘.button’).on(‘click’, function(e) { if (lots_of_stuff_already_done) { lots_of_stuff_already_done = false; … Read more