Created
July 21, 2015 17:27
-
-
Save noahub/0bdec669d511a2ec7e8f to your computer and use it in GitHub Desktop.
URL Parameter AJAX POST
This file contains 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> | |
//Replace #lp-pom-button-10 with your button's ID | |
$('#lp-pom-button-10').click(function() { | |
$.ajax({ | |
type: 'POST', | |
data:(window.location.search.slice(1)), | |
url: 'http://requestb.in/pfyauwpf' //Replace this URL with your POST handler endpoint URL | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment