After the "addNewItm" function, the "ClickDetail" function stops working. What could be the reason?

  • 0
    For some reason after adding a new item. "ClickDetail" function does not work.
    What exactly am I doing wrong? The error is somewhere in the "addNewItm" function, right?

    Below is a link to an example with code.

    1. Button with the function of adding "addNewItm".
    2. "ClickDetail" buttons.
    3. After the new element "ClickDetail" doesn't work.

    Hopefully it's not about the layout.
    Not shit code, but archiarchitecture.
    JavaScript Natalie Burton, May 4, 2019

  • 1 Answers
  • 0
    Well, open your console and take a look.

    You have an error in ClickDetail

    The function has a required argument.

    function ClickDetail (e) {

    But you call it without arguments.

    ClickDetail ()

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!