Skip to content

Instantly share code, notes, and snippets.

@danieliser
Created January 29, 2020 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danieliser/44eaf5f6c96e05972afb6e3679083d60 to your computer and use it in GitHub Desktop.
Save danieliser/44eaf5f6c96e05972afb6e3679083d60 to your computer and use it in GitHub Desktop.
var mc1Submitted = false;
jQuery('#mc-embedded-subscribe-form').on('submit reset', function (event) {
console.log(event);
if ("submit" === event.type) {
mc1Submitted = true;
} else if ( "reset" === event.type && mc1Submitted ) {
console.log('success');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment