how to manually open and close the popup using Magnific-Popup

comfreakph picture comfreakph · Jan 18, 2014 · Viewed 19.9k times · Source

In jquery dialogs we can do

$("#id").dialog('open|close')

to open close dialogs. how to do this in Magnific-popup?

Answer

Dmitry Semenov picture Dmitry Semenov · Jan 18, 2014
$.magnificPopup.open({
  items: {
    src: '#id'
  },
  type: 'inline'
});

http://dimsemenov.com/plugins/magnific-popup/documentation.html#public_methods