Ok I\'m stumped on this one. I need to iterate through these so I can make a listing by the category so something like
Business Books
Book 1
Good idea is to learn how to do it without jQuery first.
for(var category in window.books) {
if(window.books.hasOwnProperty(category)) {
console.log(category); // will log "Business Books" etc.
for (var i = 0, j = window.books[category].length; i < j; i++) {
console.log("Title: %s, Description: %s", window.books[category][i].Title, window.books[category][i].Description);
}
}
}
Then you can use $.each()
.