Ahora me muestra ok:
Código Javascript
:
Ver originalvar data =
[
{
title : 'title 1',
series : [
'series 1',
'series 2'
]
},
{
title : 'title 2',
series : [
'series2',
'series 2'
]
},
{
title : 'title 3',
series : [
'series 3',
'series 4'
]
},
{
title : 'title 3',
series : [
'series 3',
'serie44'
]
}
];
Código Javascript
:
Ver originalvar elms = elements.children('.course-title');
var len = elements.children('.course-title').length;
for(var i = 0; i < len; i++) {
var title = data[i].title;
console.log(elms[i]);
$(elms[i]).html('<span>' + title + '</span>');
}