Can anyone help me how to make daterangepicker stay open always? The daterangepicker url is "http://www.daterangepicker.com/". I cannot find any option to make it possible. can anyone suggest how to make it?
What i Have tried so far is
HTML
<div class="row">
<div id='divtest'>
<input id="txtAssetCategoryBootstrapDateRangePicker" class="form-control" />
</div>
</div>
<div class="clearfix"></div>
JAVASCRIPT
$('#txtAssetCategoryBootstrapDateRangePicker').daterangepicker({
inline: true,
singleDatePicker: false,
startDate: moment().subtract(30, 'days'),
endDate: moment(),
minDate: moment().subtract(30, 'days'),
maxDate: moment(),
//ranges: { 'Today': [moment(), moment()-29] }
});
And my document.ready is here
$(document).ready(function () {
$('.daterangepicker.dropdown-menu.ltr.show-calendar.opensright').show();
});
In the options in library, there is nothing available which will show the daterangepicker always in open mode.
Please suggest.
You can write this snippet, I think it will be work. Put in document ready function: