Skip to content

Instantly share code, notes, and snippets.

@jhned
Created May 17, 2019 17:56
Show Gist options
  • Save jhned/d97d3991573650a4b54f34fc4755115b to your computer and use it in GitHub Desktop.
Save jhned/d97d3991573650a4b54f34fc4755115b to your computer and use it in GitHub Desktop.
After mail sent
<script>
document.addEventListener( 'wpcf7mailsent', function( event ) {
(function($) {
$('.beforeSuccess').css('display','none');
$('.afterSuccess').css('display','block');
}(jQuery));
}, false );
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment