Datatables child row loop
Datatables child row loop
rambomambo
Posts: 3Questions: 2Answers: 0
Hey
i got a problem with my datatables.
in the child i got info about the cars.
But the cars got 3images or more.
And when i want make a loop in a child i dont saw the pictures
function format(d) {
var hert;
// `d` is the original data object for the row
return '<table id="detailtabel" cellpadding="5" cellspacing="0" border="1" style="padding-left:50px;">' +
'<tr>' +
'<td>Fabrikant:</td>' +
'<td>' + d.Fabrikant + '</td>' +
'</tr>' +
'<tr>' +
'<td>Model:</td>' +
'<td>' + d.Model + '</td>' +
'</tr>' +
'<tr>' +
'<td>Fotos:</td>'
'<td>' +
$.each(d.Fotos, function (j, vax) {
hert = '<img src="' + vax + '" />'
})
+'</td>'
+ '</tr>' +
'</table>';
'<div class="fotogal">hallo</div>'
}
} );
This discussion has been closed.
Answers
Please link to a test case showing the issue, as per the forum rules.
Allan