Datatables child row loop

Datatables child row loop

rambomamborambomambo 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>'







            }


        } );

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Please link to a test case showing the issue, as per the forum rules.

    Allan

This discussion has been closed.