I have the below jquery array being returned by a PHP server. if I alert the array with alert(data) it outputs:
Array
(
[0] => Array
(
[firstname] => john
[lastname] => paul
[id] => 123
)
[1] => Array
(
[firstname] => adam
[lastname] => james
[id] => 343
)
)
I have tried using: var i; for (i = 0; i < result.length; ++i) { alert(result[i]); }
This returns a single character. I need the entire value to be alerted.
for example: John then paul then 123 then adam... etc etc
Thanks as always,
result = JSON.parse(result)