From the php file I transfer an array. 
In the function I output the passed array 
On page displays as an array
, and when accessing (alert (response [0])) does not show the value of the element. How correctly to access the array element?
... echo json_encode($error); ?> ... dataType: 'json', // !!! ... success: function(response) { console.log(typeof response, response); } Source: https://ru.stackoverflow.com/questions/926182/
All Articles