I'm trying to follow this tutorial: http://www.9lessons.info/2009/10/json-jquery-ajax-php.html
Here is my code: http://jsfiddle.net/9ujd8s8r/1/
How comes that it doesn't load the JSON data into the page with this code?
$(function () {
$(".load").click(function () {
$.getJSON("http://demos.9lessons.info/data.json", function (data) {
$.each(data.posts, function (i, data) {
var div_data = "<div class='box'><a href='" + data.url + "'>" + data.title + "</a></div>";
$(div_data).appendTo("#9lessonsLinks");
});
});
return false;
});
});