当前位置: 动力学知识库 > 问答 > 编程问答 >

jQuery issue - $(this).parent().remove();

问题描述:

This question already has an answer here:

  • Events triggered by dynamically generated element are not captured by event handler

    5 answers

网友答案:
$(document).on("click", ".btnRemoveColumn", function() {

For dynamic elements, events should be delegated.

分享给朋友:
您可能感兴趣的文章:
随机阅读: