Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sendForm(data) {
  2.     $.ajax({
  3.         type: "POST",
  4.         url: "test.com",
  5.         data: JSON.stringify(data),
  6.         contentType: "application/json; charset=utf-8",
  7.         dataType: "json",
  8.         success: function(data){console.log('ok')},
  9.         failure: function(errMsg) {
  10.             console.log(errMsg);
  11.         }
  12.     });
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement