0

How to find if a button which includes some jinja is clicked

I have this button which opens up a modal depending on which row is clicked <button class="btn btn-outline" data-toggle="modal" data-target="#Modal-Testare" data-tip="{{ item.id }}" data-titlu="{{ item.name }}" >Testare</button> I want to find out if the button was clicked on item id =1 ,2, or 3 I hope someone can help me! If I'm not clear enough with what I want, tell me to give you more details! Thank you!

6th Jul 2021, 8:02 AM
Amalia Mate
Amalia Mate - avatar
4 odpowiedzi
+ 2
Ipang jinja is a web template engine used with python, similar to Flask or Django. https://jinja.palletsprojects.com/en/3.0.x/
6th Jul 2021, 10:32 AM
ChaoticDawg
ChaoticDawg - avatar
0
Looking at the {{ }} in the code, I get a feeling this is not plain Javascript. But what got me wondering more is that jinja thing, which is name of a city from web search. So I ask here, what on earth is "jinja"? You may have better chance for answer if you could share a link to your code, for those who understands, to analyse. https://www.sololearn.com/post/75089/?ref=app
6th Jul 2021, 9:35 AM
Ipang
0
Interesting data-* attributes, I get the idea by reading mdn docs. but I dont understand the double curly braces yet. 😢 It would be better if u share ur code in playground so we can try.
6th Jul 2021, 9:44 AM
arturop200
arturop200 - avatar
0
ChaoticDawg Big Thanks 🙏 I guess that tells me enough that it's far above me 😂
6th Jul 2021, 10:37 AM
Ipang