Hello! There was such problem:
Use this code:
And everything works perfectly with elements that were originally written in the html file.
If you create a list of elements thus:
The code stops working. Any idea why this might happen? (Before creating items is an ajax request, whether it be for him? Console, any errors does not produce, just 0 reaction on clicks).