Created
February 23, 2024 17:17
-
-
Save moxet/622daf98a5ac2ea28cece8ea1a4993bb to your computer and use it in GitHub Desktop.
This JQuery allows you to refresh listing without page refresh, make sure to apply .mylisting class to your listing. The timeout function improve the UX by hiding success message after 3 seconds
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
<script> | |
jQuery(document).ready(function($) { | |
$('.jet-form-builder__submit').on('click', function() { | |
$('.mylistings').load(window.location.href + ' .mylistings'); | |
setTimeout(function() { | |
$(".jet-form-builder-messages-wrap").fadeOut(); | |
}, 3000); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment