0
我需要在我的應用程序中添加日期選擇器。我正在考慮定製HTML 5 datepicker
如何自定義HTML 5日期選擇器
<input class="form-control" type="date">
我需要將向下箭頭更改爲日曆圖像。並且還需要始終顯示圖標。不只是懸停。
我需要在我的應用程序中添加日期選擇器。我正在考慮定製HTML 5 datepicker
如何自定義HTML 5日期選擇器
<input class="form-control" type="date">
我需要將向下箭頭更改爲日曆圖像。並且還需要始終顯示圖標。不只是懸停。
,如果你使用的是引導框架,那麼它會幫助你:
<div class="container">
<div class="row">
<div class='col-sm-6'>
<div class="form-group">
<div class='input-group date' id='datetimepicker1'>
<input type='text' class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div>
<script type="text/javascript">
$(function() {
$('#datetimepicker1').datetimepicker();
});
</script>
</div>