Searching DataTables rows and removing them

Searching DataTables rows and removing them

Tech360Tech360 Posts: 6Questions: 5Answers: 0

On loading the table I want to remove all the rows where a specific text "retired" occurs.

something like:
table.rows( search: "retired" ).remove().draw()

What is the best way to do that?

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @Tech360 ,

    You can do this:

    table.rows(':contains("Greer")').remove().draw();
    

    See this example.

    Cheers,

    Colin

This discussion has been closed.