在这里,工作:
添加选项yearRange: '1910:2014'
$(function() {
$( "#datepicker" ).datepicker({changeMonth: true,changeYear: true,
yearRange: '1910:2014'});
});
<p>Date: <input type="text" id="datepicker" /></p>
更新 1
$(function() {
$.datepicker.regional['es'] = {
closeText: 'Cerrar',
prevText: '<Ant',
nextText: 'Sig>',
currentText: 'Hoy',
monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio',
'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],
monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun',
'Jul','Ago','Sep','Oct','Nov','Dic'],
dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'],
dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'],
dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'],
weekHeader: 'Sm',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['es']);
//for year list
$( "#datepicker" ).datepicker({
changeMonth: true,
changeYear: true,
yearRange: '1910:2014'});
});
<p>Date: <input type="text" id="datepicker" /></p>