multiple values search in single column

multiple values search in single column

praneshpranesh Posts: 1Questions: 1Answers: 0
edited June 2016 in Free community support

I want to search multiple values(all checked values from checkbox) in single column of datatable .

var b =     table
            .columns( 2 )
            .search( "SAMSUNG");

 var a=        table
            .columns( 2 )
            .search( "HP"); 

 var c=a.concat(b);
c.draw();

Answers

  • jr42.gordonjr42.gordon Posts: 305Questions: 2Answers: 49
    edited June 2016

    See search() API. You can make your search be regex.

    Example code

    table.search("SAMSUNG|HP",true, false).draw()
    
  • ASLASL Posts: 13Questions: 7Answers: 0

    Hi this is not working for me.
    Is there an alternative?

This discussion has been closed.