javascript - How to display returned json using jquery ajax -
this question has answer here:

i have following jquery code:
$.ajax({ type: "post", url: "ajax/gettablerecord", data:{ : id, t: 'mylist'}, datatype: 'json', success: function(data){ alert(data); } when activate this, php function gettablerecord, queries db , ends with:
echo json_encode($array); i can see correct returned data in console. alert function shows contents of screenshot. how display returned key value pairs in alert box instead?
Comments
Post a Comment