Select option value - Get from datatable

0

I would like the select option to take the fields of a column in the table

My select:

<div class="dataTables_lenght">
             <label>
               <select id = "select1 " name="select1" aria-controls="example" >
                  <option value="">Existe</option>
                   <option value="">Não Existe</option>

              </select>
              Situação por página
            </label>            

           </div>

My script today.

<script type="text/javascript" charset="utf-8">

    $(document).ready(function() {
    $('#example').DataTable( {          
    "language": {
        "url": "//cdn.datatables.net/plug-ins/1.10.16/i18n/Portuguese-
           Brasil.json"
    }       
} );}); 
</script>

My code in php

foreach($ArrLog as $linhaDe){

                      for($x=0;$x<count($doc);$x++){
                        $condicaoSection = $doc->field[$x]["source"];
                        $linhaDe["status"] = "not found";
                        if ($condicaoSection == $linhaDe["de"]) {
                            $x = count($doc) + 1;
                            $linhaDe["status"] = "existe";


                        }

                    }
                              echo '<tr>
                              <td>'. $linhaDe["de"] . '</td>;
                              <td>'. $linhaDe["para"] . '</td><td>';

                if ($linhaDe["status"] == "existe"){
                            var_dump($linhaDe); 
                        echo '<span class="badge badge-success">Existe</span>';

                }   
                else
                        echo '<span class="badge badge-danger">Não Existe</span>';
                        echo '</td>

                          </tr>' ;  
                 }

How do I get the value of the $ row variable that this value appears in the table, I also put in the select option and change in the table ... type a filter any hint ??

    
asked by anonymous 12.01.2018 / 14:57

0 answers