I am trying to create download link using jQuery post() method as following:
$.post('file.php', {name:'name', id:'id'},
function(data){
$('#downloadFrame').src = data.url;
});
return true;
but always data.url returns null/unidentified, also creating a form and submitting it might be applicable in my code.
I have searched many posts on the forum but none of them works.
thank you.
You need to access the zero element of array data, so use
data[0].urlChange
To