tamble / jquery-ui-daterangepicker

A JQuery UI based date range picker.
MIT License
184 stars 110 forks source link

Dropdown not showing content #65

Closed aroque closed 7 years ago

aroque commented 7 years ago

When I load the page with the daterangepicker the default text doesn't appear to me, and when I select a date the button stills the same. Just a litle dropdown with like 3px height.

I'm trying the same way in the examples:

<div id="daily_calendar">
        <input id="e2" name="e2">
    </div>

$(function () {
            $("#e2").daterangepicker({
                datepickerOptions: {
                    numberOfMonths: 1,
                    initialText: 'Select period...'
                }
            });
});

But for example, the number of months is being applied correctly.

aroque commented 7 years ago

I find out it's because of my bootstrap.js library. Is there anyway to avoid this?

aroque commented 7 years ago

Sorry, already found the answer on:

https://github.com/tamble/jquery-ui-daterangepicker/issues/8

Loading jquery-ui.js after bootstrap.js fixes the problem for me.