lundi 2 février 2015

Accessing the attribute of an array in Javascript


Vote count:

0




I have code in PHP and javascript, my php variable transformed it into javascript variable:



var countries_list = JSON.parse('<?php echo json_encode($countries_list);?>');


When I do a console.log me returns the array: enter image description here


How I can access the attribute price?



asked 3 mins ago







Accessing the attribute of an array in Javascript

Aucun commentaire:

Enregistrer un commentaire