E
E
Eugene2018-03-12 16:11:33
css
Eugene, 2018-03-12 16:11:33

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 5aa67c268fee6987963082.jpeg
. 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

2 answer(s)
T
theuser, 2018-03-12
@theuser

https://learn.javascript.ru/event-bubbling

E
Egor Zhivagin, 2018-03-12
@Krasnodar_etc

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 question

Ask a Question

731 491 924 answers to any question