Seeking assistance please.. I have successfully created a function to retrieve all supplier data from the database. However, I now want to create javascript variables in array format to store this information. For example - one array for supplier_id and another for supplier_name.
function LoadSuppliers() {
$.ajax({
type: 'GET',
url: '/supplier/getSupplier',
success: function(response) {
console.log(response);
},
error: function(data) {
console.log('something went wrong!');
}
});
}