I'm wanting to loop an array of text. I was going to use .each() but I don't know if there is a way to do it with that. Is it possible or is there another way I need to do it? Thanks
I dont think it's necessary but here's what I was testing it with...
jQuery.each(data.reviews, function(index, itemData) {
var p = '"'+ itemData.review +'"';
$("#reviews p").text(p);
});
EDIT: It is an array of JSON objects. ( I think that's how you'd say it - or maybe - JSON Object of an array of objects )
By loop I'm wanting it to eventually fade in and out of each "review" and loop so if there is 5 reviews then it would loop from 5 to 0 then go back to 5 and continue infinitely. Hope that makes it more clear.