[英]jQuery magnific-popup submit button
Is it possible to make an extra button on the jquery magnific-popup component, with the functionality to close the dialog? 是否可以在jquery magnific-popup组件上添加一个额外的按钮,并具有关闭对话框的功能?
I'm using the component to add a description to a photo, therefor I'll need a submit button that will add the description via ajax to the photo (this happens already) but the dialog isn't closing... 我正在使用该组件向照片添加描述,因此,我需要一个提交按钮,该按钮将通过ajax将描述添加到照片(这已经发生),但是对话框没有关闭...
After reading the doc closely you can do it like: 仔细阅读文档后,您可以执行以下操作:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.