.parent().remove() issue

后端 未结 5 970
慢半拍i
慢半拍i 2021-01-01 18:26

I have a jQuery-based form where you can add extra people to the application. I\'m cloning the first fieldset and adding it onto the end up to a max of 3 additional people.

5条回答
  •  遥遥无期
    2021-01-01 19:02

    The elements don't originally exist, which means you need to use .live() or .delegate()

    For example, change:

    use $(".remove").click(...) instead of $(".remove").live("click", ...) this

提交回复
热议问题