how to make table display only selected row?

how to make table display only selected row?

RukiriiRukirii Posts: 7Questions: 6Answers: 0

Hello,
From this example https://datatables.net/extensions/select/examples/initialisation/checkbox.html
if i check a row , the rest of the rows need to disappear giving only data of the selected row.
is it possible to do this?

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586
    Answer ✓

    Hi @Rukirii

    You could delete all the other rows with rows().remove(), but then they would be gone so if you want them back, that would be an issue. Alternatively, you could display a modal with the row().data() for that row,

    Cheers,

    Colin

This discussion has been closed.