How do I make it display a datetimepicker up immediately above the input that displays it? How should I initialize it?
I use bootstrap 3.3.7. For now I just have it initialized like this:
$("[id^='Date']").datetimepicker({
locale: 'es',
format: 'DD/MM/YYYY',
maxDate: Date.now(),
showClose: true,
allowInputToggle: true,
keepInvalid: true,
ignoreReadonly: true,
}).on("dp.show", function () {
$(this).next().css("bottom", 57)
$(".content.clearfix").css("overflow", "visible")
}).on("dp.hide", function () {
$(".content.clearfix").css("overflow", "hidden")
})
But I don't know what to put on it to achieve the above said.
The option to position it is widgetPositioning .
Code (best viewed in full screen):
This worked for me: