S
S
sometextagain22020-11-05 11:09:45
JavaScript
sometextagain2, 2020-11-05 11:09:45

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

For some reason after adding a new element. The "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.
https://codepen.io/sometextagain2/pen/QWEBgaB

1. Button with "addNewItm" function.
2. "ClickDetail" buttons.
3. After the new element "ClickDetail" doesn't work.
5fa3b33801c12239408411.png
I hope it's not the layout.
Not govnokod, and archiarchitecture.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-11-05
@sometextagain2

Well, open the console and take a look.
You have an error in ClickDetail
Function has a required argument But you call it without arguments
function ClickDetail(e){
ClickDetail()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question