Is it possible to just pick the newly created tag using js in a variable without reloading the page?

Hi all.
There is such simple code. Beat words in Russian and English, they are added to the table. Also added a button that removes those words (removes the row in the table and from local storage). But there is a problem in a variable:
let delWords = document.querySelectorAll('.delbtn');

I want to take the piece you just created layout nothing arrives (to pick up I want same button), it remains blank, though the tag was created and comes in a variable only using f5, ie when the page is reloaded. You can do something to make it work without rebooting?
And do so properly to do, i.e. to create with js a piece of layout, and try to take in variables?
April 19th 20 at 12:20
0 answer

Find more questions by tags JavaScript