That's is my code, why I always got this Error? There's no looping on my code. Try to anothe browser, but I got the same result.
$(document).on('click', '#add_sup_btn', function() {
var data = {
nama : document.getElementById("name_sup"),
alamat : document.getElementById("address_sup"),
phone : document.getElementById("phone_sup"),
email : document.getElementById("email_sup"),
name_pic : document.getElementById("name_pic"),
phone_pic : document.getElementById("phone_pic"),
email_pic : document.getElementById("email_pic")
}
sendData(data);
});
function sendData(param) {
$.ajax({
type : 'POST',
url : 'upload/add_suplier',
dataType : 'json',
data : param,
success :function() {
$('#addSuplier').hide();
$('.modal-backdrop').hide();
console.log();
},
error : function() {
alert('Fail');
}
});
}