Peace be upon those who follow guidance
how are you all
I have a slight problem with the jquery
I have two buttons, and a hidden element, when I press the old button the id is printed on the new button, and the new button works to show the hidden element

But when you click the new button, the hidden item does not appear! So what is the problem?
Here is the problem code:
or : https://codepen.io/emozlove/pen/gOweROV
Where is the problem?
Thanks

Thanks you, I found the solution
I had to do the following:
Because the browser does not recognize the id after creation, so this movement must be applied, in order to recognize it

source