Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jgram925/c73155a693895be0455550a3c2ffec92 to your computer and use it in GitHub Desktop.
Save jgram925/c73155a693895be0455550a3c2ffec92 to your computer and use it in GitHub Desktop.
Click Event on Dynamically Generated Button.md
$("#pm-table").on("click", ".pm_auto_complete", function(){

Instead of the selecting the button itself, the parent element should be selected. Then select the class/id of the element in the ON event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment