Answer the question
In order to leave comments, you need to log in
Why doesn't JS read the rest of the JSON values?
var info = {
"Team": "Antalyaspor",
"OverallOver": "26",
"OverallUnder": "8",
"OverallOver%": "76",
"OverallUnder%": "24",
"HomeOver": "14",
"HomeUnder": "3",
"HomeOver%": "82",
"HomeUnder%": "18",
"AwayOver": "12",
"AwayUnder": "5",
"AwayOver%": "71",
"AwayUnder%": "29"
};
alert(info.OverallOver%);
Answer the question
In order to leave comments, you need to log in
% is not a valid symbol for names, so you need to write it like this:info['OverallOver%']
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question