我使用这个daterangepicker http://tamble.github.io/jquery-ui-daterangepicker。它将选定日期的字段呈现为按钮。如果我点击这个字段,会打开一个日历。但我需要能够手动编辑该字段(键入日期)。是否可以用daterangepicker API,或者我必须在按钮上方创建一些自定义输入并添加几条js行?jquery daterangepicker编辑输入
现在,我只是使用标准设置
`this.calendar.daterangepicker({
datepickerOptions: datepickerOptions,
applyOnMenuSelect: true,
icon: '',
presetRanges: this.options.presetRanges,
initialText: this.options.initialText,
applyButtonText: this.options.buttonNames.apply,
clearButtonText: this.options.buttonNames.clear,
cancelButtonText: this.options.buttonNames.cancel,
dateFormat: "dd.mm.yy"
});`
initialText - 是一个值,这将显示,它不会被编辑。
请分享您的代码
display: none;
输入,到现在无论你都试过了。 – Shiladitya