Advertisement
misolutions

submit_expenditure-submit-js

Nov 18th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $("#submit_expenditure").on("click", function () {
  2.            
  3.             if ($('select[name="PROJECT_FK"]').val() == "0") {
  4.                 $("#cekExpCostPart").val("No");
  5.             } else {
  6.                 $("#cekExpCostPart").val("Yes");
  7.             }
  8.  
  9.             var formdata = $("#kt_form").serialize();
  10.             $.ajax({
  11.                 type: "POST",
  12.                 data: formdata,
  13.                 url: "/Activity/SaveExpidentureCostMeeting",
  14.                 success: function () {
  15.                     var table = $('#ActiveCostCentreTable , #SelectedCostCentreTable, #ExpenditureTable').DataTable();
  16.                     table.ajax.reload();
  17.                     return swal.fire({
  18.                         title: "",
  19.                         text: "Successfully Save Data",
  20.                         type: "success",
  21.                         confirmButtonClass: "OK"
  22.                     }), !1;
  23.                 }
  24.             });
  25.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement