Skip to content

Instantly share code, notes, and snippets.

@robozavri
Created September 12, 2018 12:02
Show Gist options
  • Select an option

  • Save robozavri/0535abbd72d46f75642e5795a241a0c0 to your computer and use it in GitHub Desktop.

Select an option

Save robozavri/0535abbd72d46f75642e5795a241a0c0 to your computer and use it in GitHub Desktop.
javascript after append element do onclick
$(document).on("click", "#make", function(e){alert('test')});
$("#loadmystatus").append("<button id='make'>Click me!</button>");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment