Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Positioning BootStrap daterangepicker calendar

I am using BootStrap Datepicker. I want to load/position the calendar at top of the field. How can i do this ?

Currently it is loading like this - enter image description here

like image 597
ni8mr Avatar asked Oct 24 '25 19:10

ni8mr


1 Answers

To make the calendar appear above the input instead of below, change the "drops" setting to "up".

$(element).daterangepicker({
    drops: 'up'
});
like image 183
Dan Grossman Avatar answered Oct 27 '25 00:10

Dan Grossman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!