SOLVED
------->
solution :
var obj = jQuery.parseJSO N(data);
alert( obj.a);
thx to all for you help !
User Profile
Collapse
-
display json data using AJAX
Hi,
my aim is to display the content of my json data i receive from my php file.
php is sending :
PHP--->
$arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5);
echo json_encode($ar r);
<---
AJAX--->
ajax is receiving "data" and displaying : data = {"a":1,"b":2,"c ":3,"d":4,"e":5 }...
No activity results to display
Show More
Leave a comment: