showing results for - "jquery not calling id from div called in ajax"
Diego Alejandro
06 Oct 2020
1$(document).on('change', '#typeship', function(e){
2  var courier = $('#courier').val();
3  var cityfrom = $('#cityfrom').val();
4  var cityto = $('#cityto').val();
5  var weight = $('#tot_weight').val();
6  var shiptype = $(this).val();
7  alert (shiptype); // didn't response -> no alert pop up 
8  $.ajax({
9    type: "POST",
10    url: "<?php echo base_url();?>backend/Ctransaction/showShipCost",
11    data: {Courier:courier, Cityfrom:cityfrom, Cityto:cityto, Weight:weight, Shiptype:shiptype},
12    datatype:"html",
13    success: function(data){
14      $('#detailcost').html(data);
15    }
16  });
17});
18