Created
October 13, 2015 13:24
-
-
Save housemeow/4d9f2329a08b4125f2d9 to your computer and use it in GitHub Desktop.
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
| $(function() { | |
| $("button#submit").click(function() { | |
| $.ajax({ | |
| url: "http://54.148.46.112:5000/keep", | |
| type: "POST", | |
| crossDomain:true, | |
| data: $("form#user").serialize(), | |
| error: function(message) { | |
| alert("錯誤發生!" + message); | |
| }, | |
| success: function(message) { | |
| alert("感謝填表!"); | |
| $("form#user")[0].reset(); | |
| } | |
| }); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment