ho fatto questo form.. e ho inserito questo calendario: <?xml version = "1.0"? encoding="utf-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>CPoW - Inserimento nuova offerta di viaggio</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css" />
<script>
$(function() {
$("#datepicker").datepicker({
inline: true, dateFormat: "dd-mm-yy", firstDay: 1, showOtherMonths: true,
dayNamesMin: ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'],
monthNames:['Gennaio', 'Febbraio', 'Marzo', 'Aprile','Maggio','Giugno','Luglio','Agosto','Sett embre','Ottobre','Novembre', 'Dicembre'],
monthNamesMin:['Gen','Feb','Mar','Apr','Mag','Giu','Lug','Ago','S et','Ott','Nov','Dic'],
onSelect: function() {
nomeFunzione();
}
}).datepicker('setDate', '0');
});
</script>
</head>
<body>
<h1>Inserimento nuova offerta di viaggio</h1>
<form name = "modulo" method = "post" action = "">
<ul>
[*]
<label>Citta' di partenza*:
<input name = "cittaPartenza" type = "text" size = "20" maxlenght = "20" />
</label></p>
[*]
<label>Citta' di arrivo*:
<input name = "cittaArrivo" type = "text" size = "20" maxlenght = "20" />
</label></p>
[*]
<label>Data di partenza*:
<input type="text" id="datepicker" /></p>
</label></p>[/list]
</br>
<input type = "submit" value = "Conferma dati inseriti" />
<input type = "reset" value = "Resetta tutti i campi" />
</p>
*I campi sono obbligatori.</p>
</form>
</body>
</html>
-come faccio a togliere il fatto che in automatico esce la data di oggi e non dopo averci cliccato?
-come faccio a far chiudere la tendina del calendario dopo aver scelto la data?