Created
August 23, 2014 22:23
-
-
Save DapperFox/8751dadb6ee175cb81cc to your computer and use it in GitHub Desktop.
for clayton
This file contains hidden or 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
| 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