9
sto usando questo markupjQuery datepicker - opzioni di sostituzione di dati-attributo
<label> Date <input type="text" data-datepicker="{maxDate: '+1d'}" /></label>
<label> Another date <input type="text" data-datepicker="" /></label>
<script>
$('[data-datepicker]').each(function() {
// init the options var with some default values (dateFormat etc)
// that can be overridden by the data-datepicker values
// also, new values can be added to the options from data-datepicker
// such as in the above example "maxDate"
var options = TODO;
$(this).datepicker(options);
});
</script>
io non so davvero da dove cominciare con che le opzioni oggetto .. partire con i valori di default sembra un buon avviare
var options = { dateFormat: 'yy-mm-dd };
Ma allora come aggiungo/sovrascrivere con valori dai dati di attributo .. io non so
Grazie per il vostro aiuto. – Ivar