Created
July 13, 2011 15:46
-
-
Save jondavidjohn/1080573 to your computer and use it in GitHub Desktop.
Submit Multiple Forms via AJAX
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
$('button').click(function() { | |
$('form').each(function() { | |
var action = $(this).attr("action"); | |
var data = $form.serialize(); | |
$.post(action, data); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment