Search / Filter 2 values from the same column

Search / Filter 2 values from the same column

momokingmomoking Posts: 2Questions: 0Answers: 0

Say I have the Office column that contains City names.

To filter a particular Office I just do :

table.column(2).search('Tokyo', false, true).draw();

Is it possible to filter Tokyo and New York, which ever is available?

Thank you

Replies

  • momokingmomoking Posts: 2Questions: 0Answers: 0

    A workaround I'm using right now is to build a filter string with pipe character (regex or)

    table.column(2).search('Tokyo|New York', true, false).draw();
    
    
This discussion has been closed.