Closing the Pop-Over on action

I am using the popover plugin to display an optin form. Is there any way i can have the popover close once the form is submitted? i have the confirm page open in a new window, so the popover just sits there. Thanks.

  • DavidM
    • DEV MAN’s Mascot

    Hello there laureenc,

    Whatever method you're using to get that popup window opened, if you could somehow append a quick jQuery function to it, something like the following, it should work just fine.


    As a more complete example, the following works just fine within the popover and clicking on the button closes the popover box.

    <form name="input">
    Username: <input type="text" name="user" />
    <input type="button" value="Close" onClick="jQuery('#closebox').click();" />

    Please let me know if that helps.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.