I have this jquery function that call a php function and return an array
$.ajax({
url: 'json/orders.php',
type: 'post',
data: { "value" : value },
success: function(response) {
... how? ...
}
});
This is the array :
[{"id":"560","price":"13.93","id_tax_rules_group":"1","reference":"CR332"}]
The array is always of 1 row... How to get value that I use to update input value?
Thanks
indexesto get array elementsresponse[0].id