F
F
fierfoxik2016-08-27 21:18:48
JavaScript
fierfoxik, 2016-08-27 21:18:48

How to unload data from json for multiple elements?

Good time. Faced such task:

There are 25 buttons, when you click on the button, a module window appears with a title and text. It is most logical, of course, to unload this text and title, than to copy 25 modular windows and write a handler for each.

I remembered about json, but a question arose. How to make it so that when you click on the buttons, a text is displayed for each button in the module window?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor L, 2016-08-27
@fierfoxik

https://jsfiddle.net/Fullzero5/7uh8e5a5/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question