0
我想在啓動模式下使用bootstrap-datepicker;我已經通過提供HTML剃刀代碼@Html.TextBoxFor()
。如何在Bootstrap模態上使用bootstrap-datepicker?
但Datepicker不顯示。
請幫幫我。
我想在啓動模式下使用bootstrap-datepicker;我已經通過提供HTML剃刀代碼@Html.TextBoxFor()
。如何在Bootstrap模態上使用bootstrap-datepicker?
但Datepicker不顯示。
請幫幫我。
添加腳本
<script type="text/javascript">
$(function() {
$(".datepicker").datepicker();
});
</script>
並設置文本框
@Html.TextBoxFor(m => m.xxx, new {@class = "form-control datepicker" , @id = "datepicker" })
爲您提供HTML和其他片段。 – ScanQR
歡迎來到Stackoverflow。請閱讀以下鏈接以改善您的問題:[Tour](http://stackoverflow.com/tour)| [如何問](http://stackoverflow.com/help/how-to-ask)| [最小,完整和可驗證示例](http://stackoverflow.com/help/mcve) – Tom