我希望日期选择器选择当前日期/今天并显示它而不是'dd----yyyy'而且我希望从选择中禁用今天之前的日期,请帮助!
$(document).ready(function () {
$("#button_id").click(function () {
$('<div/>', {
id: "div_id"
}).append($('<input>', {
type: "date",
name: "someDate",
class: "date_id"
})).appendTo("#static_div");
$(".date_id").datepicker({
//i want the datepicker to select the currentdate/today and display it instead of'dd----yyyy'and moreover i wanted the date before today to be disabled from selection
});
});
});
这是我的小提琴的链接: