For some reason my Jquery is not looping through my Json data. Current undefined error.
Json when logged.
{
"cities": [
{
"storename": "new Store",
"notes": "test",
"rejected": "on",
"offer": "test"
}
]
}
Html
console.log(JsonData);
$.each($.parseJSON(JsonData), function(idx, obj) {
alert(obj.storename);
});