2017-03-08 27 views
0

這裏我的代碼手動日期任何一個可以幫助如何讓自舉,日期選擇器插件

<div class="input-group date"> 
    <input type="text" class="form-control"><span class="input-group-addon"><i class="glyphicon glyphicon-th"></i></span> 
</div> 

腳本

$('#datepic .input-group.date').datepicker({ 

}); 

現在,我可以設定彈出選擇日期,但我需要用戶可以允許輸入日期手冊以及使用彈出

+0

嗨,希望這一個對你有用 https://jsfiddle.net/onlinesolution/ap6dwpmz/ – dhana

回答

0

嘗試下面的代碼,希望是你升的工作和嘗試點擊下方還爲您引用

https://jsfiddle.net/onlinesolution/ap6dwpmz/

<div class="input-group date"> 
    <input type="text" class="form-control datepicker"><span class="input-group-addon"><i class="glyphicon glyphicon-th"></i></span> 
</div> 


$(".datepicker").datepicker({ constrainInput: false }); 
相關問題