I have the following code snippet:
var images = [];
for (var i = 0; i < actions.length; i++) {
for (var j = 0; j < actions[i].Images.length; j++) {
var imagem = new Image();
imagem.Description = actions[i].Images[j].Description;
imagem.Url = actions[i].Images[j].Url;
images.push(imagem);
}
}
$('#carousel-imagens').append($("#imagesTemplate").tmpl(images));
$('#carousel-imagens').addClass("item");
array
var images stores the URL
of several images I have. But by passing this array
pro carousel
, it places the images one underneath the other. I would like them to be placed next, what should I do?