I try to understand where is my mistake, and I cannot find it: this is my code
javascript:
$(document).ready(function(){
$.getJSON('ajax/data.json', function(data) {
$.each(data.results, function(i,item){
alert(item.foo);
});
});
});
and data.json file:
{
"results":[
{
"foo": "The quick brown fox jumps over the lazy dog.",
"bar": "ABCDEFG",
"baz": [52, 97]
},
{
"foo": "The quick brown fox jumps over the lazy dog.",
"bar": "ABCDEFG",
"baz": [52, 97]
},
]
}
Works fine in IE7, FF, but doesn't work in IE8
Can you help me, what's wrong here?
PS: using 1.4.3 jquery version
Thanks!