Answer the question
In order to leave comments, you need to log in
How to make the datepicker not go down?
Question from a noob.
There is such a page
, the top two datepickers are displayed normally.
there was a need to create another datepicker on the fly by clicking on a table cell and display it there.
So far I've sketched the idea like this:
$('body').on('dblclick','.price-date-column',function(){
var content = '<div class="input-group date"><input type="text" class="form-control input-price-date"></span></div>';
$(this).html(content);
var t = $(this).find('input').datetimepicker({
pickTime: false,
format: 'MM-DD-YYYY'});
//$('.bootstrap-datetimepicker-widget').addClass('blinnnnn');
});
Answer the question
In order to leave comments, you need to log in
So, with difficulty raking the solutions proposed here, I propose my own))
After a variety of tricks, the easiest method of treatment, IMHO, is to add to the styles:
.bootstrap-datetimepicker-widget{
top:auto!important;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question