<div class="datePickerContainer">
<input class="form-control datepicker bg-color-white" placeholder="MM/DD/YYYY" maxlength="15" ng-model="PriceLineObj.StartDate" id="txtDate" type="text">
</div>
JQuery 代码是:
$(function () {
debugger;
$("#txtDate").datepicker({
showOn: "button",
class: "tester",
buttonImage: "images/calendar-green.gif",
buttonImageOnly: true,
buttonText: "Select date",
minDate: 0,
maxDate: 365,
beforeShow: function () {
$('#ui-datepicker-div').addClass("lbAvalabilityDatePicker")
},
onSelect: function (selectedDate) {
$('.enddatepicker').datepicker('option', 'minDate', selectedDate);
}
});
})
现在,当我单击 images/calendar-green.gif 时,我看不到日历。我已经添加了所需的库。请建议