Skip to content

Instantly share code, notes, and snippets.

@linusthe3rd
Created November 12, 2010 21:52
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 linusthe3rd/674752 to your computer and use it in GitHub Desktop.
Save linusthe3rd/674752 to your computer and use it in GitHub Desktop.
var inputArray = [];
$('#listOfData').each( function(){
inputArray.push( this.value );
});
$.post( 'yourServerPage.php', {
'data[]': inputArray
}, function( outputData ){
$('#outputDiv').empty().append( outputData );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment