add two child row with different classname

add two child row with different classname

yu yen kanyu yen kan Posts: 65Questions: 31Answers: 0

Is that possible when I click to show details on responsive datatable, I create 2 child row with diferent classname and refresh only once when refresh data?

Answers

  • allanallan Posts: 62,092Questions: 1Answers: 10,181 Site admin

    Yes, you can create two different tr elements with their contents and pass them back in a jQuery object. e.g. do something like:

    var out = $('<tr>...</tr>'+'<tr>...</tr>');
    

    And use that variable to give to DataTables to render as the child rows.

    Allan

This discussion has been closed.