I'm trying to use a Datepicker inside a Bootbox modal but the problem is that the datepicker won't show the calendar inside the modal, but it works outside.
Add
On the modal I'm loading the content of a hidden DIV using Bootbox:
$('.add_date_btn').on('click', function () {
bootbox.dialog({
message: $('#add_class_form').html(),
title: "Add Class",
buttons: {
cancelar: {
label: "Cancelar",
className: "btn-default"
}
}
});
}); //End click
A sample is here: http://jsfiddle.net/4EjSW/
On my site the DIV #add_class_form is set to "display:none" but on the sample code I left it there so anyone can confirm it's actually working when it's outside the modal.
Any idea how to fix this? It's really driving me crazy...
Thanks in advance!