【发布时间】:2022-10-24 15:10:02
【问题描述】:
第一组块使用类,第二组块使用 id 但是当使用类时它工作正常但是如果我替换 id 它没有实现
$(".input-monthpicker").datepicker({
format: "mm-yyyy",
viewMode: "months",
minViewMode: "months",
startDate: new Date(new Date().getFullYear(), '0', '01'),
autoclose: true
});
$("#ForMonth").datepicker({
format: "mm-yyyy",
viewMode: "months",
minViewMode: "months",
startDate: new Date(new Date().getFullYear(), '0', '01'),
autoclose: true
});
剃刀语法
@Html.TextBoxFor(m => m.ForMonth, new { @class = "form-control input-monthpicker validate freezelastyear", placeholder = "Month", @readonly = true, id = "ForMonth" })
请帮帮我
【问题讨论】:
标签: jquery asp.net-core datepicker