hi everyone.
i have a data.json file where i have stored many fields. i want to display only 10 of them in a div with id news.this loop shows all of them. any help how can i realize it ?
$(function() {
$.getJSON('data.json', function(data) {
$.each(data, function(i, f) {
var title = "<p>"+f.title+"</p>"
$("#news").append(title);
});
});
});