Last active
December 2, 2023 18:47
-
-
Save softiconic/dbf3d1489cbb0c285bec86f9148d95a4 to your computer and use it in GitHub Desktop.
Hide an Elementor form after submission.
This file contains hidden or 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
<script> | |
jQuery(document).ready(function($) { | |
$(document).on('submit_success', '#formsct', function() { | |
$submitted_form = $(this); | |
// $submitted_form.hide(); | |
$(".elementor-form-fields-wrapper").hide(); | |
$('.elementor-message-success').show(); // this is the sucess message that I created. | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment