Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery call dynamically created class

instead of this:
$(".editBtn").on("click", function(){
  //do something
});

use this;
$("body").on("click", ".editBtn", function(){
  //do something
});
Source by teamtreehouse.com #
 
PREVIOUS NEXT
Tagged: #jquery #call #dynamically #created #class
ADD COMMENT
Topic
Name
9+4 =