This is my ajax code
var formData = new FormData();
$a = array = ['1', '7'];
formData.append('kpmConfigDt1', $a);
$.ajax({
url: '<?= base_url() ?>hr_pms/kpmConfigDtl_list1',
data: formData,
cache: false,
contentType: false,
processData: false,
type: 'POST',
success: function(data) {
.........
}
});
this my code, I want to use $a as the value of my formData.append, but it doesn't work, can you help me? Thanks.