Skip to content

Instantly share code, notes, and snippets.

@softiconic
Last active December 2, 2023 18:51
Show Gist options
  • Save softiconic/07dd10e091985aadf1a83bdcd1ae8bd8 to your computer and use it in GitHub Desktop.
Save softiconic/07dd10e091985aadf1a83bdcd1ae8bd8 to your computer and use it in GitHub Desktop.
Remove a specific div from the contact form after submission.
jQuery( document ).ready(function( $ ){
$( document ).on('submit_success', '.contactsc2 .elementor-form', function(){
$submitted_form = $( this );
$('.contactsc2 .elementor-form-fields-wrapper').hide();
// $submitted_form.hide();
$('.contactsc2 .elementor-message-success').show();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment