Skip to content

Instantly share code, notes, and snippets.

@NeilHanlon
Created July 2, 2014 16:47
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 NeilHanlon/2b22127849261be12561 to your computer and use it in GitHub Desktop.
Save NeilHanlon/2b22127849261be12561 to your computer and use it in GitHub Desktop.
$('button[name=save]').click(function () {
$('div[data-item_id]').each(function () {
form = $(this).find('form');
$.ajax({
'url': form.attr('action'),
'type': 'post',
'dataType': 'json',
'data': form.serialize(),
'statusCode': {
200: function (res) {
}
}
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment