Allora, ho cambiato funzione. Mi hanno detto di prendere datepicker()...ma ho sempre lo stesso problema. la funziona è:
codice:
$('.datepicker').datepicker({
changeMonth: true,
changeYear: true,
minDate: "-80Y",
maxDate: "+1M +10D"
});
e ora noto che negli errori mi da:
codice:
Uncaught TypeError: Object [object Object] has no method 'datepicker'
(anonymous function)consing:28
jQuery.Callbacks.firejquery.js:1064
jQuery.Callbacks.self.fireWithjquery.js:1182
jQuery.extend.readyjquery.js:437
DOMContentLoaded
Il punto è che se uno lo stesso codice in un altra pagina...funziona.
Dall'errore qui sopra sembra che $('.datepicker') non ritorni niente. o?
Nel mio jsp ho 3 volte:
codice:
<input class="form datepicker" type="text" name="dataDiNascita" />