Skip to content

Instantly share code, notes, and snippets.

@danieliser
Last active September 27, 2016 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danieliser/3c8c4748811e517eb61f to your computer and use it in GitHub Desktop.
Save danieliser/3c8c4748811e517eb61f to your computer and use it in GitHub Desktop.
Popup Maker: Set custom auto open cookie when form submitted.
jQuery('#popmake-123 form').on('submit', function () {
jQuery.pm_cookie(
'pum-123', // The cookie name that is checked prior to auto opening.
true, // Setting a cookie value of true.
'10 years', // Plain english time frame.
'/' // Cookie path of / means site wide.
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment