Buonasera
come posso italianizzare il tutto?
Inoltre, come posso indicare che nel campo "partenza" voglio selezionare solo dal giorno dopo quello che imposto nel campo "arrivo"?
codice:
$( function() {
var dateFormat = "dd/mm/yy",
from = $( "#arrivo" )
.datepicker({
minDate: +1,
changeMonth: true,
numberOfMonths: 1
})
.on( "change", function() {
to.datepicker( "option", "minDate", getDate( this ) );
}),
to = $( "#partenza" ).datepicker({
changeMonth: true,
numberOfMonths: 1
})
.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;
}
} );