I want bootstrap datepicker 3 to remain always open. I have tried all previous solutions but I guess they are not applicable on version 3. I can show it on 'dp.hide'
but it hangs my browser because of inefficiency.
Any other solutions are appreciable. I don't want calendar to be closed when I click somewhere else on browser.
Here is JavaScript code
<script type="text/javascript">
$(function () {
$('#datetimepicker10').datetimepicker({
viewMode: 'years',
format: 'MM/YYYY',
keepOpen: true
}).on('dp.update', function () {
$('#datetimepicker10').datetimepicker("show");
});
$('#datetimepicker10').data("DateTimePicker").show();
});
</script>
Here is html
<div class="form-group">
<div class='input-group date' id='datetimepicker10'>
<input type='text' class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar">
</span>
</span>
</div>
</div>