Answer the question
In order to leave comments, you need to log in
How to link to each row in a table?
Still, I will ask this question, since a similar question has no answer and there is generally nonsense.
I will not attach the code of the table, as it is a regular bootstrap table with tags .
Here is just its appearance
. As you can see, there is a cross there. So here's how to make sure that the click event of the cross does not trigger the click event of the entire row and vice versa. And how to make different links on click. Since a modal window should be called on click and the parameters should change slightly for each line
Answer the question
In order to leave comments, you need to log in
In the handler of a click of a cross, doing event.stopPropagation()
a Click on a line has nothing to do with a click on the cross
Well, on a click on a line, take the parameters you need for a particular line and substitute them in the modal. What is the problem?) The implementation depends only on where these parameters are taken at all
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question