A
A
Alexey Orlov2018-07-02 18:43:59
css
Alexey Orlov, 2018-07-02 18:43:59

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

1 answer(s)
P
ProjectSoft, 2018-07-02
@Hardjuice

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 question

Ask a Question

731 491 924 answers to any question