I am trying to integrate Popovers from Bootstrap with the full calendar, But the popover doesn't show up. The code isnspector shows that the HTML is modified and the attributes data-original-title="" title="" are set so the code is working but popover doesn't show up.
Here is the code I am using:
$(document).ready(function() {
$('#myCalendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay',
},
events: './jobs/event-feed.php',
editable: true,
selectable: true,
dayClick: function(start, end, allDay, jsEvent, view) {
$(this).popover({
html: true,
placement: 'top',
title: function() {
return $("#popover-head").html();
},
content: function() {
return $("#popover-content").html();
}
});
}
});
});
#popover-head and #popover-content
<div id="popover-head" class="hide">some title</div>
<div id="popover-content" class="hide">
<form>
<input type="text" name="asa" value="asa" />
</form>
</div>
References
- Adding qtip to full calendar - How to access a calendar day
- Adding form to popover - HTML form inside a bootstrap popover
JSFIDDLE