JavaScript JavaScript and the DOM Traversing the DOM Using parentNode to Traverse Up the DOM

DOM Traversal

what if i want the user whenever he enters a new item to the list a remove button is added beside it dynamically without typing the button tags in the html .. is it possible ??? because whenever u delete an item and then add a new item u should manually add the button tag in the html

thanks in advance :)

1 Answer

Steven Parker
Steven Parker
187,272 Points

That's exactly the kind of thing DOM traversal is good for! And if I remember correctly, in just a few more videos you will do an exercise involving adding new list items and buttons together.