Created
January 29, 2020 09:16
-
-
Save danieliser/44eaf5f6c96e05972afb6e3679083d60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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