I'm using Eonasdan bootstrap date/timepicker. I want my calendar is always shown, even if I press enter key in the input field. So far I managed showing always open the calendar except when hitting enter key by using attributes:
keepOpen: true,
inline: true,
debug: true.
Segment of JS code
$(function () {
$('#datepicker').datetimepicker({
format: 'DD.MM.YYYY',
keepOpen: true,
inline: true,
debug: true,
icons:{
date: 'fa fa-calendar',
up: 'fa fa-chevron-up',
down: 'fa fa-chevron-down',
previous: 'fa fa-chevron-left',
next: 'fa fa-chevron-right',
today: 'fa fa-screenshot',
clear: 'fa fa-trash',
close: 'fa fa-remove'
}
//beforeShowDay:
// daysOfWeekDisabled: [0,6]
});
Segment of html code:
<div class="input-group date" data-provide="datepicker">
<input id="datepicker" type="text" name="date" class="form-control input-md">
<div class="input-group-addon dt-cal">
<span class="fa fa-calendar"></span>
</div>
</div>