I have the following array of objects:
Array
(
[0] => stdClass Object
(
[original_price] => 1100
[discounted_price] => 1100
)
)
I am trying to access original and discounted price using javascript. But not getting.
I have tried result[0]['original_price'] where result is the total result but not getting the value.
javascripttag? That is a php array.json_encode($array)in your PHP code