title: How to change yajra dataTable search filtering system?
body: <p>Suppose i write in datatable search box 'b' then it will normally show 'abc','ybu','break','brain' etc .but i want to get only 'break','brain' (start with b).that means when i write something word ,it will show me word that start with that.
  i am using yajra DataTables 1.10.10.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>i solved this prob but now facing new prob
  when i try to use two datatables ,it stop to show one datatable tbody datas but another datatable work properly</p>
  
  <pre><code>$.fn.dataTableExt.afnFiltering.push(
        function(oSettings, aData, iDataIndex) {
            var keywords = $(".dataTables_filter input").val().split(' ');  
            var matches = 0;
            for (var k=0; k&lt;keywords.length; k++) {
                var keyword = keywords[k];
                for (var col=0; col&lt;aData.length; col++) {
                    if (aData[col].charAt(0).toLowerCase() == keyword.charAt(0).toLowerCase()) {
                        matches++;
                        break;
                    }
                }
            }
            return matches == keywords.length;
         }
      );
   $('.table2id').dataTable({
   });
   $('.table1id').dataTable({
  });
  </code></pre>
  
  <p><strong>finally solved it</strong> </p>
  
  <pre><code>var ptable = $('#table2').DataTable();
  var rtable = $('#table1').DataTable();
  
  var term;
  $('#table1_filter input[type="search"]').keyup(function(e){
      console.log("table1_filter");
      var term = $(this).val();
  
      regex = '^' + term ;
      rtable.column( 0 ).search( regex, true, false ).draw();
  
  });
  $('#table2_filter input[type="search"]').keyup(function(e){
  
      term = $(this).val();
      regex = '^' + term ;
      ptable.column( 0 ).search( regex, true, false ).draw(); 
  
  }); 
  </code></pre>