I am using eonasdan's bootstrap 3 datetimepicker. I just wanted to know is it possible open the selector using the input field as well as the calendar glyphicon.
I know how to make it open using either the input field or the glyphicon but not both.
HTML is below:
<div class='input-group date'>
<input type='text' class="form-control" id='datetimepicker1'>
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
<script type="text/javascript">
$('#datetimepicker1').datetimepicker({
format: 'ddd D MMMM, YYYY'
});
</script>
There is a function
allowInputToggle
to open datepicker while clicking on both icon and input, which you can find here