Hi there -
I am using a mobiscroll.popup to display a form. When the form is submitted I would like to close the popup. How can I do this? My popup does have the “OK” button to close/dismiss. How can I programatically trigger that?
Thanks
Hi there -
I am using a mobiscroll.popup to display a form. When the form is submitted I would like to close the popup. How can I do this? My popup does have the “OK” button to close/dismiss. How can I programatically trigger that?
Thanks
If you’re looking for closing a popup programatically, you can do that using the following code:
// Init popup
$(‘#mypopup’).mobiscroll().popup();
// Hide it later
$(‘#mypopup’).mobiscroll(‘hide’);
Let me know if this helps
Is there a way to write this code without knowing the id for the popup? I’d like to be able to close any popup that may currently be open.