codice HTML:
<!doctype html><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="jquery-ui-1.8.22.custom.css"> <script src="jquery-1.8.0.min.js"></script> <script src="jquery-ui-1.8.22.custom.min.js"></script> <!-- /* Italian initialisation for the jQuery UI date picker plugin. */ /* Written by Antonello Pasella (antonello.pasella@gmail.com). */ --><script> jQuery(function($){ $.datepicker.regional['it'] = { closeText: 'Chiudi', prevText: '<Prec', nextText: 'Succ>', currentText: 'Oggi', monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno', 'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'], monthNamesShort: ['Gen','Feb','Mar','Apr','Mag','Giu', 'Lug','Ago','Set','Ott','Nov','Dic'], dayNames: ['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'], dayNamesShort: ['Dom','Lun','Mar','Mer','Gio','Ven','Sab'], dayNamesMin: ['Do','Lu','Ma','Me','Gi','Ve','Sa'], weekHeader: 'Sm', dateFormat: 'dd/mm/yy', firstDay: 1, isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; $.datepicker.setDefaults($.datepicker.regional['it']); }); </script>
<title>Date</title></head>
<body> <div id="datepicker"></div> <script> $(document).ready(function(){ $("#datepicker").datepicker({ // print the selected date to the page title onSelect: function(dateText, inst) { $("divdata").html(dateText) = dateText } }); }); </script>
</body></html>
dove e come devo scrivere il divdata per far apparire ciò che mi serve nella pagina?