Skip to content

Instantly share code, notes, and snippets.

@yemster
Created May 17, 2016 10:05
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 yemster/e3264267cb654ebdc9f1fa35354ea1b0 to your computer and use it in GitHub Desktop.
Save yemster/e3264267cb654ebdc9f1fa35354ea1b0 to your computer and use it in GitHub Desktop.
Backward compartibility of HTML 5 form-attribute submissions
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