2
{"finalOFX":{"0":"276.67"},"0":null}
So it is returning from PHP, as in javascript give alert and display only the 276.67
I tried so alert(dados.finalOFX)
, but appears Object: Object
2
{"finalOFX":{"0":"276.67"},"0":null}
So it is returning from PHP, as in javascript give alert and display only the 276.67
I tried so alert(dados.finalOFX)
, but appears Object: Object
2
Just select which key you want in this case is 0.
Example:
alert(dados.finalOFX[0]);
2
You must access the properties of the object, being, dados
the object containing: {"finalOFX":{"0":"276.67"},"0":null}
, finalOFX
the object containing: {"0":"276.67"}
and 0
the object containing "276.67"
You must do something similar to this:
var dados = {"finalOFX":{"0":"276.67"},"0":null};
alert(dados.finalOFX["0"]);
Browser other questions tagged javascript jquery
You are not signed in. Login or sign up in order to post.
I still don’t understand what you expect/want to appear?
– Sergio