$(document).ready(function(){
$("input").not('input[type=submit]').addClass('form-control');
$('.edit-customer').click(function(){
// get data from edit btn
var rejobid = $(this).attr('data-recordJob-id');
var jobid = $(this).attr('data-Job-id');
var staffsname = $(this).attr('data-staffs-name');
var cusname = $(this).attr('data-cus-name');
var custel = $(this).attr('data-tel');
var cusaddress = $(this).attr('data-cus-address');
var producttype = $(this).attr('data-product-type');
var productbrand = $(this).attr('data-brand');
var productmodel = $(this).attr('data-model');
var cusjobtype = $(this).attr('data-job-type');
var jobdetail = $(this).attr('data-detail');
var jobstatus = $(this).attr('data-status');
var datetime = $(this).attr('data-date-time');
var map = $(this).attr('data-map');
console.log(productbrand);
console.log(jobdetail);
console.log(jobstatus);
// set value to modal
$("#record_job_ID").val(rejobid);
$("#job_ID").val(jobid);
$("#staffs_name").val(staffsname);
$("#cus_name").val(cusname);
$("#cus_tel").val(custel);
$("#cus_address").val(cusaddress);
$("#pro_type").val(producttype);
$("#pro_brand").val(productbrand);
$("#pro_model").val(productmodel);
$("#cus_type").val(cusjobtype);
$("#detail").val(jobdetail);
$("#status").val(jobstatus);
$("#job_datetime").val(datetime);
$("#job_map").val(map);
$('#formEditCustomer').modal('show')
});
});