Request:
$.ajax({ type: "POST", url: req_ajx_host + "ajx/sharecount/", data: "&projid=<?=$proj['id'];?>", success: function (data) { $("#sharecount").html(data); alert(data); } });
Displays the string:
[{"sco": "12"}]
How to make an array from a string and output the value 12?
data[0]['sco']
- Vitaly Emelyantsev