SHARE
TWEET

Untitled

a guest Aug 24th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var id = $('#id').val();
  2.     var form = new FormData($('#formeditkaryawan')[0]);
  3.     var url = '{{route("listkaryawan.update",":id")}}';
  4.     url = url.replace(':id',id);
  5.     // alert(url);
  6.     $.ajax({
  7.       url: url,
  8.       type:'POST',
  9.       data:form,
  10.       async: false,
  11.       cache: false,
  12.       contentType: false,
  13.       enctype: 'multipart/form-data',
  14.       processData: false,
  15.       }).done(function(response){
  16.         alert('data tenaga kerja berhasil diperbaharui');
  17.      });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top