使用Twitter Bootstrap和Bootstrap-datepicker扩展。我无法在 popover 中显示日期选择器。
<a href="#" id="add-event-button" class="btn btn-small">Add an Event</a>
$(document).ready(function () {
$("#add-event-button").popover({
title: "Add an Event",
placement: 'bottom',
content: '<input class="datepicker" type="text" />',
html: true
}).click(function (e) {
e.preventDefault();
});
});
弹出框显示得很好,并且<input class="datepicker" type="text" />
在弹出框上下文之外显示日期选择器很好。有任何想法吗?