Javascript 选择加载引导日期选择器的div
我有自己的下拉列表,我想在那里加载,在文档中我找不到任何关于它的内容。这是我想做的一些例子 这就是我的HTML的外观,我想在其中添加datepickerJavascript 选择加载引导日期选择器的div,javascript,jquery,css,datepicker,bootstrap-datepicker,Javascript,Jquery,Css,Datepicker,Bootstrap Datepicker,我有自己的下拉列表,我想在那里加载,在文档中我找不到任何关于它的内容。这是我想做的一些例子 这就是我的HTML的外观,我想在其中添加datepicker <div class="my-example"> <input id="" placeholder="press to show calendar" class="input"> <div class="dropdown"> there is div, where I need to load
<div class="my-example">
<input id="" placeholder="press to show calendar" class="input">
<div class="dropdown">
there is div, where I need to load my datepicker
</div>
</div>
还有div,我需要在那里加载我的日期选择器
添加一个div,以便加载选择器:
<div class="dropdown">
<div class="datetimepickerinline">
there is div, where I need to load my datepicker
</div>
</div>
这项工作的关键是通过将
inline
属性设置为true
您希望使用下拉类将新的日期选择器或以前的日期选择器数据加载到div中。我很乐意提供帮助!
$('.datetimepickerinline').datetimepicker({inline: true});