How to open bootstrap modal popup on Event Click FullCalendar?

open bootstrap modal popup on Event Click FullCalendar


Hello to all, welcome to therichpost.com. 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=’https://fullcalendar.io/releases/fullcalendar-scheduler/1.9.3/lib/fullcalendar.min.css’ rel=’stylesheet’ />
<link href=’https://fullcalendar.io/releases/fullcalendar-scheduler/1.9.3/scheduler.min.css’ rel=’stylesheet’ />
<link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/
<script src=’https://fullcalendar.io/releases/fullcalendar-scheduler/1.9.3/lib/moment.min.js’></script>
<script src=’https://fullcalendar.io/releases/fullcalendar-scheduler/1.9.3/lib/jquery.min.js’></script>
<script src=’https://fullcalendar.io/releases/fullcalendar-scheduler/1.9.3/lib/fullcalendar.min.js’></script>
<script src=’https://fullcalendar.io/releases/fullcalendar-scheduler/1.9.3/scheduler.min.js’></script>
<script src=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min
$(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. Therichpost.com


the authortherichpost
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am full stack developer. I love coding. I know Wordpress, Core php, Angular 1, Angular 2, laravel, Codeigniter, Shopify, Squarespace, Jquery, GoogleMapApi Vuejs, Reactjs, Bigcommerce etc.

Leave a Reply