Hi, I actually read a lot of topics about array and jquery, and they all show an example using jquery inside the hmtl script tag, but I'm trying to learn how to read the array sent by php throught ajax inside the js file
here is my php example
$record = array('jazz','rock', 'punk', 'soft', 'metal');
echo json_encode($record);
then here is my ajax
$.ajax({
url: "system/music_list.php",
dataType: 'json',
cache: false,
success: function(response){
},
});
thanks if you can help me
source
share