I'm creating popup using method http://dimsemenov.com/plugins/magnific-popup/documentation.html#api -> Public methods.
$.magnificPopup.open({
items: {
src: '#createTableBooking',
type: 'inline'
}
});
I want to call function when this exact popup close.
Here's the JSFiddle for what u needed JSFiddle. Here in the code you can use your own div id like you have used in your case, in the src
field. Your code was missing the extra function call which would be made when we close the popup.
Here in the code, a function call is made before closing the popup as you needed. Hope this helps.