Advertisement
jamboljack

JS View 50%

Nov 13th, 2017
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. function uploadlimapuluh(id) {
  2.     $('#form_upload_lima_puluh')[0].reset();
  3.     $.ajax({
  4.         url : "<?php echo site_url('fasilitator/pelaksanaan/check_foto_lima/'); ?>"+id,
  5.         type: "GET",
  6.         dataType: "JSON",
  7.         success: function(data) {
  8.             $('#rtlh_id').val(data.rtlh_id); // ID Rtlh
  9.             $path = '<?php echo base_url(); ?>img/';
  10.  
  11.             // Perulangan untuk menampilkan Gambar
  12.            
  13.            
  14.             $('#formLimaPuluh').modal('show');
  15.         },
  16.         error: function (jqXHR, textStatus, errorThrown) {
  17.             alert('Error get data from ajax');
  18.         }
  19.     });
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement