Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

In jquery dialogs we can do

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

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

like image 376
comfreakph Avatar asked Jan 17 '14 23:01

comfreakph


1 Answers

$.magnificPopup.open({
  items: {
    src: '#id'
  },
  type: 'inline'
});

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

like image 55
Dmitry Semenov Avatar answered Oct 25 '22 06:10

Dmitry Semenov