D
D
Daniel2018-02-22 22:10:58
JavaScript
Daniel, 2018-02-22 22:10:58

How to "pass" data to the modal and then save it to the database?

Good day.
In general, the essence of the problem is this.
There is a slight semblance of a bookmaker's office. To place a bet, you need to select the odds.

5a8f15bcf1b2d136873243.png

How to "pass" the match number to the modal window, in which then to read this number and load the data corresponding to this match from the database and then save it with the bet?
Thank you very much.

I tried to generate a separate window for each coefficient, but this is somehow strange

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-02-22
@daniil46

data-id="nomer-matcha"
var matchId = $(selector).data("id");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question