Jquery Data table Particular Column Search is not working - Search value is not passing to server

Jquery Data table Particular Column Search is not working - Search value is not passing to server

ssaranyassaranya Posts: 1Questions: 1Answers: 0
edited January 2021 in Free community support
Particular Search Column - Server not getting search data

 var oTable2 = $('#product_master_table').DataTable({

"paginationType":"full_numbers",        
"paginate": true,
'processing': true,
'serverSide': true,
'serverMethod': 'post',
"filter": true,
'ajax': ajax_url,
"autoWidth": false,
"searching":true,
 dom: "ltip"

});

If i search using this, //right now searching only 3 column

    oTable2.columns(3).search(searchTerm,true,false );

Answers

  • kthorngrenkthorngren Posts: 21,174Questions: 26Answers: 4,923
    edited January 2021

    As shown in the columns().search() examples, you need to add draw() to execute the search, for example:

    oTable2.columns(3).search(searchTerm,true,false ).draw();
    

    Kevin

This discussion has been closed.