I coded following JS handler,
var day = list[1].dt;
to success event to get the second "dt" in the array but I get the first "dt."
Even though I change the number in [] to 2 and 3, the result is the same.
How can I fix this?
Thanks!!
"list":[
{
"dt":1415116800,
"temp":{
"day":60.96,
"min":58.66,
"max":60.96,
"night":58.66,
"eve":60.96,
"morn":60.96
},
"pressure":1027.97,
"humidity":46,
"weather":[
{
"id":803,
"main":"Clouds",
"description":"broken clouds",
"icon":"04n"
}
],
"speed":7.47,
"deg":212,
"clouds":76
},
{
"dt":1415203200,
"temp":{
"day":60.26,
"min":50.49,
"max":64.96,
"night":54.41,
"eve":63.95,
"morn":53.64
},
"pressure":1030.48,
"humidity":54,
"weather":[
{
"id":803,
"main":"Clouds",
"description":"broken clouds",
"icon":"04d"
}
],
"speed":3.18,
"deg":226,
"clouds":68