Skip to content

Instantly share code, notes, and snippets.

@torstenfeld
Created November 29, 2012 10:59
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 torstenfeld/4168202 to your computer and use it in GitHub Desktop.
Save torstenfeld/4168202 to your computer and use it in GitHub Desktop.
Output of post parameters with javascript
<script>
$('form').submit(function() { // on submitting the form
alert($(this).serialize()); // alert the parameter string which would be sent
return false; // return false to stop the submit
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment