D
D
Damir Valiakhmetov2019-12-28 14:23:30
JavaScript
Damir Valiakhmetov, 2019-12-28 14:23:30

How to substitute the required form in the modal window depending on the class of the table from which the modal window is called?

There are three tables on one page. There is one modal window. It is necessary, depending on which table the modal window is called from, to substitute your form in this modal window. I so understand that it is possible to implement it defining a class of the table and to substitute the certain form.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arman, 2019-12-28
@Arik

I would probably start with something like this:

$('#myModal').on('show.bs.modal', function (e) {
    $(e.relatedTarget).closest('table');
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question