Hey guys, I have been building a little side project and I am having trouble removing elements of the
.todo class and what has been happening is that the initial list element on the page works fine when the
xbutton is pressed.
However, when I add multiple elements then press the X beside the very first
input, they all disappear! Not only that but when I add them again using the button (which is working fine) the
xbutton beside each of them refuses to work.
I am perplexed, how do I make the
xbutton work properly on all the appended inputs, while simultaneously only deleting the single input alongside it. Thanks guys!!!
Here is my pen-----> https://codepen.io/ismailhozain/pen/oMYzwY?editors=0010