jquery call dynamically created class

54

jquery call dynamically created class -

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

use this;
$("body").on("click", ".editBtn", function(){
  //do something
});

Comments

Submit
0 Comments