Ecco qui il codice

lo si può vedere in funzione su www.sanginesio.com/phpcalendar1.php

Quando si preme "PREMI QUI" questo richiama la funzione Ricerca dove dovrebbe trasportare dei lavori e darmene evidenza con un "alert" ma
1) non funziona l'alert
2) come faccio a trasportare la data o le date che inserisco in ricerca?

Grazie molte per quello che potrai fare

Codice
Codice PHP:
<!doctype html>
<
html lang="en">
<
head>
  <
meta charset="utf-8">
  <
meta name="viewport" content="width=device-width, initial-scale=1">
  <
title>jQuery UI Datepicker - Default functionality</title>
  <
link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  <
link rel="stylesheet" href="/resources/demos/style.css">
  <
script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  <script>
   $( function() {
     var dateFormat = "mm/dd/yy",
       from = $( "#from" )
         .datepicker({
           defaultDate: "+1w",
           changeMonth: true,
           numberOfMonths: 3
         })
         .on( "change", function() {
           to.datepicker( "option", "minDate", getDate( this ) );
         }),
       to = $( "#to" ).datepicker({
         defaultDate: "+1w",
         changeMonth: true,
         numberOfMonths: 3
       })
       .on( "change", function() {
         from.datepicker( "option", "maxDate", getDate( this ) );
       });
        function getDate( element ) {
       var date;
       try {
         date = $.datepicker.parseDate( dateFormat, element.value );
       } catch( error ) {
         date = null;
       }
          return date;
     }
   } );
</script>

<script type="text/javascript">
 

$ function Ricerca(IDtabella,voce,valore,valoredadata){
        alert(IDtabella + "----" + voce + "----" + valoredadata + "----"); 

}
);

</script>
 
</head>
<body>
<label for="from">From</label>
 <input type="text" id="from" name="from">
<label for="to">to</label>
 <input type="text" id="to" name="to">
<a href="javascript:Ricerca('tabella1','Comune','Pescara','valore che vorrei trasportare')">PREMI QUI</a>
</body>
</html>