Created
May 17, 2016 10:05
-
-
Save yemster/e3264267cb654ebdc9f1fa35354ea1b0 to your computer and use it in GitHub Desktop.
Backward compartibility of HTML 5 form-attribute submissions
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
E.g. | |
$('.js-show-spinner').click(function() { | |
var $saveButton = $(this) | |
$saveButton.html($('<div>').addClass('loader')) | |
setTimeout(function() { $('#' + $saveButton.attr('form')).submit(); }) | |
return false | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment