Relative Content

Tag Archive for javascripthtmlflaskjinja2

How to control buttons individually when they are created via a loop

I am creating an admin page in flask using jinja2. Upon logging in the admin could see the various queries sent by user and based on it can take action. Using jinja template I have retrieved the data and along with the data included button also in the loop so that on each row with a query there will be corresponding button. Now I want to add some functionality to individual button, but i am not able to figure out how because after using “id” in loop will not produce unique id for each button which then throw’s error in javascript. Can anyone please help me with this.