Skip to content

Instantly share code, notes, and snippets.

@lelandsmith
Forked from fleimisch/Custom Trigger Event
Created February 23, 2018 21:39
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 lelandsmith/eb80eeb30bdd2b9cb8789c1399b31f1d to your computer and use it in GitHub Desktop.
Save lelandsmith/eb80eeb30bdd2b9cb8789c1399b31f1d to your computer and use it in GitHub Desktop.
Custom Trigger Event
/* place inside function */
jQuery.event.trigger('OverlayBoxonOpen');
/* call custom event */
$(document).bind('OverlayBoxonOpen', function () { alert('test') });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment