Search code examples
javascriptcssflatpickr

Set custom css for wrapping div


I use timepicker from flatpickr and I need to set custom width (for mobile support). I didn't find function for this. Thank you in advance for help.


Solution

  • I found a solution. (I needed to set the width not to all of the pickers, but only to certain)

    $(".hasTime.noCalendar").wrap('<div class="bells-timepicker"></div>');
    .bells-timepicker .noCalendar{
        width: 150px;
    }