Created
August 22, 2014 01:32
-
-
Save jhonnrodr/6314957f855a2ec183c7 to your computer and use it in GitHub Desktop.
$Ajax asynchronous HTTP (Ajax) request
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
$.ajax({ | |
type: "POST", | |
url: "/charge", | |
data: { userName: cardholdername, CardNum: CardNum, months: months, year: year, CVNum: CVNum, Amount: Amount } | |
}).done(function(msg) { | |
$("h2.modal-title").text(msg.title); | |
$("modal-body").text(msg.message); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment