I have a Bootstrap Popover and inside it I want to have an inline datepicker. However the datepicker gets created but none of the datepicker events fire.
I have also taken reference from Link 1, Link 2 and Link 3 but none of them works for me.
HTML Code
<div class="container" style="text-align:center;">
<a href="#" data-toggle="popover" data-placement="bottom" id="lnkLaunchDate">
<i class="glyphicon glyphicon-filter" style="color: #000 !important;"></i>
</a>
</div>
<div id="popover-launchDate" class="hide">
<div>
<div id="launchDate" class="grid-filter-datepicker" style="font-size:9px !important"></div>
</div>
</div>
Script
$('[data-toggle="popover"]').popover({
html: true,
title: function () {
return "";
},
content: function () {
return $("#popover-launchDate").html();
},
callback: function () {
$('#launchDate').datepicker();
}
}).on('shown.bs.popover', function() {
$('#launchDate').datepicker();
});
$('#launchDate').datepicker();
Here is my demo
Am I missing something? Any help will be appreciated.