Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sendForm(data) {
- $.ajax({
- type: "POST",
- url: "test.com",
- data: JSON.stringify(data),
- contentType: "application/json; charset=utf-8",
- dataType: "json",
- success: function(data){console.log('ok')},
- failure: function(errMsg) {
- console.log(errMsg);
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement