Код: Выделить всё
if (!Modernizr.inputtypes.date) {
var $dates = $("input[type=date]");
$dates.each(function () {
var thisDate = $(this);
thisDate.datepicker({
minDate: thisDate.attr("min"),
maxDate: thisDate.attr("max"),
dateFormat: "mm-dd-yy"
});
});
< /code>
Использование < /p>
var array = ["2013-03-14", "2013-03-15", "2013-03-16"]
Подробнее здесь: https://stackoverflow.com/questions/232 ... datepicker