How to open bootstrap modal popup on Event Click FullCalendar?

open bootstrap modal popup on Event Click FullCalendar


Hello to all, welcome to In this post, I will tell you, How to open bootstrap modal popup on Event Click FullCalendar? fullcalendar is the best A JavaScript event calendar. Customizable and open source.
In this post, we will bootstrap modal pop on Event Click FullCalendar event.


Here is the working code for How to open bootstrap modal popup on Event Click FullCalendar:

<!DOCTYPE html>
<meta charset=’utf-8′ />
<link href=’’ rel=’stylesheet’ />
<link href=’’ rel=’stylesheet’ />
<link rel=”stylesheet” href=”
<script src=’’></script>
<script src=’’></script>
<script src=’’></script>
<script src=’’></script>
<script src=”
$(document).ready(function() { // document ready
editable: false,
aspectRatio: 6.0,
scrollTime: ’00:00′,
header: {
left: ”,
center: ”,
right: ‘prev, today title , next’
defaultView: ‘customWeek’,
slotLabelFormat:”ddd DD MMM”,
views: {
customWeek: {
type: ‘timeline’,
duration: { weeks: 1 },
slotDuration: {days: 1},
buttonText: ‘Custom Week’

navLinks: false,
resourceAreaWidth: ‘20%’,
resourceLabelText: “Custom Event”,

resources: [
{ id: ‘1’, title: ‘Event Title 1’ },
{ id: ‘2’, title: ‘Event Title 2’ },
{ id: ‘3’, title: ‘Event Title 3’ }
events: [
{ id: ‘1’, resourceId: ‘1’, start: ‘2018-03-13’, end: ‘2018-03-14’, title: ‘event 1’ },
{ id: ‘2’, resourceId: ‘1’, start: ‘2018-03-15’, end: ‘2018-03-15’, title: ‘event 2’ },
{ id: ‘3’, resourceId: ‘2’, start: ‘2018-03-14’, end: ‘2018-03-14’, title: ‘event 3’ }

eventClick: function(calEvent, jsEvent, view, resourceObj) {
$(“#successModal .modal-body p”).text(‘Resource ID: ‘ + resourceObj.title);

.fc-license-message{display: none;}
body {
margin: 0;
padding: 0;
font-family: “Lucida Grande”,Helvetica,Arial,Verdana,sans-serif;
font-size: 14px;

#calendar {
max-width: 900px;
margin: 50px auto;


<div id=’calendar’></div>
//Bootstrap Modal POPUP
<div class=”modal fade” id=”successModal” tabindex=”-1″ role=”dialog” aria-labelledby=”successModalLabel” aria-hidden=”true”>
<div class=”modal-dialog” role=”document”>
<div class=”modal-content”>
<div class=”modal-body”>
<button type=”button” class=”close” data-dismiss=”modal” aria-label=”Close”>
<span aria-hidden=”true”>&times;</span>

There are so many tricks in fullcalendar and I will let you know all. Please do comment if you any query related to this post. Thank you.


Ajay Malhotra
the authorAjay Malhotra
Hello to all. Welcome to Myself Ajay Malhotra and I am full stack developer. I love coding. I know Wordpress, Core php, Angularjs, Angular 2, Angular 6, Angular 7, laravel, Codeigniter, Shopify, Squarespace, Jquery, Google Map Api, Vuejs, Reactjs, Bigcommerce etc.


Leave a Reply

Positive SSL