Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • You have two $(".item-all .item-save").click() calls. The first handler only runs for the buttons that are in the original HTML. Both handlers run for the original buttons and the buttons that were added by the .each() loop. Commented Oct 14, 2021 at 4:58
  • I don't really understand what you're trying to do. But if you're going to add and remove elements dynamically, you should probably read Event binding on dynamically-created elements Commented Oct 14, 2021 at 5:01
  • Sorry but this is not a relevant solution can you provide a jsFiddle demo of how to fix this little issue, I hope I get some answer or solution from your side 😊 Commented Oct 14, 2021 at 5:03
  • waiting for your answer sir Commented Oct 14, 2021 at 5:57
  • Try to improve the clarity of your question.. Commented Oct 14, 2021 at 8:44