Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (this.value=='0') {
- console.log("No");
- $.ajax({
- type: 'POST',
- url: "update_order.php",
- data: {
- order: $(this).closest('tr').find('td:first').text(),
- verified: 'no',
- booked_by: 'no'
- },
- success: function(data) {
- // There is no need for this...
- // window.location.reload();
- // console.log(data);
- }
- });
- } else {
- // alert("Yes");
- console.log("Yes");
- $.ajax({
- type: 'POST',
- url: "update_order.php",
- data: {
- order: $(this).closest('tr').find('td:first').text(),
- verified: 'yes',
- booked_by: 'yes'
- },
- success: function(data) {
- // There is no need for this...
- // window.location.reload();
- // console.log(data);
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement