How to display a pop-up window by clicking on the number?

There is such task. I have 30 numbers. For example, a number from 1 to 30. There are 30 modal Windows with different text. You need to make a click on the number appearing modal window.

I realized that I need on each number to put click on it to launch a modal window. There are easier methods to solve this problem, so you don't have to constantly select the item and apply his event on click?
April 3rd 20 at 18:40
2 answers
April 3rd 20 at 18:42
Solution
April 3rd 20 at 18:44
Wouldn't it be easier to do 30 numbers and one modal window, and just change the text?

Find more questions by tags JavaScriptLayoutWeb Development