Skip to content

Instantly share code, notes, and snippets.

@DapperFox
Created August 23, 2014 22:23
Show Gist options
  • Select an option

  • Save DapperFox/8751dadb6ee175cb81cc to your computer and use it in GitHub Desktop.

Select an option

Save DapperFox/8751dadb6ee175cb81cc to your computer and use it in GitHub Desktop.
for clayton
var allAdded = [];
var tutorial = function(data) {
var val1 = $item.find('item_parts').val();
var val2 = $item.find('required_to_make').val();
var container = {val1, val2};
allAdded.push(container);
};
$('form').submit(function(evt) {
$.post('/newadded', itemsAdded: allAdded, function(data, textStatus, xhr) {
/*optional stuff to do after success */
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment