0
How can i use .each() function to parse json data using jquery that comes from the server which encode using php json_encode
i cant parse using .each method but still am getting the data when in use consol.log() method i see the data in the browser inspect mode but when i use .each() error occur which says can not use "in " operator. plz help me. i use jquery ajax get function to send request to the server
2 odpowiedzi
+ 2
// jsonData => data from the server
Object.keys(jsonData).forEach( function(key) {
console.log(key);
console.log(jsonData[key]);
});
// hope this is what you are looking for
+ 1
$each(data, function(i,item){
order.id}