Answer the question
In order to leave comments, you need to log in
Assigning the same ID from the data-target button?
Is it possible to make one crutch for a modal window (rather than making 10 windows with different IDs) so that when you click on the button that calls the modal window, the window is set to the same ID as the data-target value of the button?
I'm learning PUG, so I admit the possibility that it is possible to do this through it ..
Sandbox
Answer the question
In order to leave comments, you need to log in
https://codepen.io/anon/pen/BVbdOz
Is it?
Doc: https://pugjs.org/language/iteration.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question