There seems to be no good way to trigger a Javascript function to run after a form reset.

Triggering on the reset event itself runs the function before the reset happens, so all the old information is still in the form. On a recent project I needed to do stuff based on a clean form immediately after it had been reset.

The workaround: trigger on the reset event, but wrap the function in a setTimeout() to delay for a moment to allow the reset to complete before running. It worked, but it feels hacky.

$('.my-form').on('reset', function () {
    setTimeout(function() {
        // do stuff
    }, 100);