Skip to content

Instantly share code, notes, and snippets.

@nocodesupplyco
Created December 16, 2022 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nocodesupplyco/253e8c6911e45b9800b1fb9b86319b36 to your computer and use it in GitHub Desktop.
Save nocodesupplyco/253e8c6911e45b9800b1fb9b86319b36 to your computer and use it in GitHub Desktop.
Reload Page After Form Submit
//Refresh page after 7 seconds of any form submission
$(function() {
$(document).on('submit', 'form', function() {
setTimeout(function() { location.reload(true); }, 7000);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment