que estoy usando esta marcadojQuery selector de fechas - las opciones de modificación de los datos de atributos
<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>
que no se sabe muy bien por dónde empezar con el objeto que las opciones .. A partir de los valores por defecto parece una buena iniciar
var options = { dateFormat: 'yy-mm-dd };
Pero entonces, ¿cómo puedo añadir/sobrescribir con los valores del atributo de datos .. yo no sé
Gracias por su ayuda. – Ivar