I need to store some retrieved data from Database into an array. I know we can present the data as this example:
$('#loader').click(function () {
$.get(
'results.php', {
id: $(this).val()
},
function (data) {
$('#result').html(data);
}
);
});
but how I can store the function(data){}
into an array like var datalist = []
Thanks