Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. if (this.value=='0') {
  2. console.log("No");
  3.  
  4. $.ajax({
  5. type: 'POST',
  6. url: "update_order.php",
  7. data: {
  8. order: $(this).closest('tr').find('td:first').text(),
  9. verified: 'no',
  10. booked_by: 'no'
  11. },
  12. success: function(data) {
  13. // There is no need for this...
  14. // window.location.reload();
  15. // console.log(data);
  16. }
  17. });
  18.  
  19.  
  20.  
  21.  
  22. } else {
  23. // alert("Yes");
  24. console.log("Yes");
  25.  
  26. $.ajax({
  27. type: 'POST',
  28. url: "update_order.php",
  29. data: {
  30. order: $(this).closest('tr').find('td:first').text(),
  31. verified: 'yes',
  32. booked_by: 'yes'
  33. },
  34. success: function(data) {
  35. // There is no need for this...
  36. // window.location.reload();
  37. // console.log(data);
  38. }
  39. });
  40.  
  41.  
  42.  
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement