98
rated 0 times
[
100]
[
2]
/ answers: 1 / hits: 22210
/ 14 Years ago, fri, march 18, 2011, 12:00:00
I'm trying to develop a web application using jQuery, AJAX and JSON.
I have this code:
console.log(response.s);
if (response.s == true) {
alert('good');
} else {
alert('bad');
}
This response
(via console.log()
on Firebug) seems to be:
{s:true}
Which seems to be a JSON object right?
Well, the line console.log(response.s);
on the first code I added here returns undefined
. What's the problem?
More From » jquery