Created
November 29, 2012 10:59
-
-
Save torstenfeld/4168202 to your computer and use it in GitHub Desktop.
Output of post parameters with javascript
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
<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