<div class="bootstrap-datepicker">
<label class="col-sm-3 control-label" for="inputname"> Date</label>
<div class="input-group date">
<input type="text" name="date" id="date" class="form-control pull-right datepicker" id="datepicker" value="">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
</div>
</div>
<div class="bootstrap-timepicker">
<label class="col-sm-3 control-label" for="time">Time</label>
<div class="input-group">
<input type="text" name="time" id="time" class="form-control timepicker" value="">
<div class="input-group-addon">
<i class="fa fa-clock-o"></i>
</div>
</div>
</div>
我添加的脚本是:
$(function () {
$('.datepicker').datepicker({
autoclose: true,
format:'dd-mm-yyyy'
});
$('.timepicker').timepicker({
showInputs: false
});
});
包含脚本文件
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
并且在Chrome和Firefox中运行良好,但它无法在Internet Explorer中运行。请帮帮我。
答案 0 :(得分:0)
您可以尝试这样: -
$("input.pickerClass").datepicker();
答案 1 :(得分:0)
检查出来
$('#inputboxid').datepicker({
showOn: "button",
onSelect: function()
{
// this will execute
$(this).change();
}
});