Salve , questo è il mio codice js :
Ma il regional viene ignorato , se lo metto dopo function in questo modo :codice:<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script src="https://raw.githubusercontent.com/jquery/jquery-ui/main/ui/i18n/datepicker-it.js"></script> <script> $(document).ready(function() { $(function() { $('#id_class_data_presunta_spedizione').datepicker({ changeMonth: true, changeYear: true, dateFormat: 'dd-mm-yy', yearRange: "2010:2040" }); $( "#id_class_data_presunta_spedizione" ).datepicker( $.datepicker.regional[ "it" ] ); }); }
Oltre a rimanere in inglese perdo anche le option , dove sbaglio ?codice:$(document).ready(function() { $(function() { $( "#id_class_data_presunta_spedizione" ).datepicker( $.datepicker.regional[ "it" ] ); $('#id_class_data_presunta_spedizione').datepicker({ changeMonth: true, changeYear: true, dateFormat: 'dd-mm-yy', yearRange: "2010:2040" }); }); }

Rispondi quotando