Ask coding questions

← Back to all posts
Flask Jinja loop issue
PikachuB2005

I have a button and div in a jinja loop (each button and loop has its own id). The button is supposed to hide/show the div, but it only works for the first one in the loop. Any ideas for what's going on?

Voters
PikachuB2005