C
C
corona-net2020-04-28 14:25:42
JavaScript
corona-net, 2020-04-28 14:25:42

Why does a script stop working after executing another script?

Good day.
There is a site: u0763918test2.isp.regruhosting.ru
When you click on the pictures in the green block, the background in the gray block changes.

But everything changes if we load the upload image and click to update the div. We add a file to the green block, everything is as it should be. But when you click on the pictures, they no longer become the background of the gray block, nothing happens at all.
How to be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2020-04-28
@xmoonlight

How to be?
Look for a problem in the code and fix it.

R
Rickkk, 2020-04-28
@Rickkk

Most likely, all your images lose their click event handler.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question