close speedo popup programmatically

close speedo popup programmatically


Hi,

I am using below code to view SpeedPopup and it's working fine. On address.php, I have a button and I want to close the popup when button is clicked using jquery.

I tried:
  1. var speedoInstance = $(this).speedoPopup();
  2. speedoInstance.hidePopup();
but did not work.

How can I do his please?

this is how I am viewing the popup.
  1. <a href="address.php" class="speedo-popup" data-speedo-options='{"caption": "Delivery Address", "effectIn": "fade", "effectOut": "none", "width": 450, "height": 450, "theme": "metro", "draggable": false}'>New Address</a>


Thanks,
Jassim Rahma