Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
JS Custom Trigger
$("p").on("myOwnEvent", function(event, showName){
$(this).text(showName + "! What a beautiful name!").show();
$("p").trigger("myOwnEvent", ["Anja"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.