Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. $.ajax({
  2. type: "POST",
  3. url: '@Url.Action("ValiderRang")',
  4. data: '{Id: ' + JSON.stringify(id) + ',Rang: ' + rang + '}',
  5. dataType: "json",
  6. contentType: "application/json; charset=utf-8",
  7. success: function (response) {
  8. if (response == "success") {
  9. return true;
  10. }
  11. else {
  12. return false;
  13. }
  14. },
  15.  
  16. error: function (XMLHttpRequest, textStatus, errorThrown) {
  17. return false;
  18. }
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement