Write a date in a datatable search field

Write a date in a datatable search field

Hi at all ,sorry for english , i have a datatable ,with your's search field input , i add an id to this field(id="ricerca_data")in the jquery.datatables.min.js and if i see in console i see this id .
I insert a new field to search data by datepicker :

  1.  <label>Ricerca  per data</label>
  2.          <br>  
  3.          <input type="text" name="" id='select_data' value="">
  4.          <br>  
  5.          <br>  
  6.          <input type="button" class='btn btn-warning' name="name" id='ricerca_button' value="Ricerca">

And insert this script :

  1.  $(document).ready(function() {
  2.  

  3.         
  4.          $.fn.dataTable.moment( 'DD-MM-YYYY' );
  5.  
  6.          $('#datatable').DataTable({
  7.                   
  8.           
  9. "order": [ 2, 'desc' ]
  10.  
  11.          });
  12.          
  13.          $('#select_data').datepicker({
  14.             format: "dd/mm/yyyy",
  15.             language: 'it',
  16.             viewMode: 'years',
  17.          });
  18.          
  19.          $("#ricerca_button").click(function(){
  20.              
  21.             var data_selected= $("#select_data").val();
  22.             console.log(data_selected);
  23.             $("#ricerca_data").text(data_selected);

  24.          });
  25.          
  26.          
  27.       });

The data appear on console ,but the data isn't write on search field .

Can you help me ?