I have 12 or so buttons on my HTML, and I want to change the text of just one paragraph after I click each button, because each button should deliver a different text. The problem is that, because I generated all the buttons through a Jinja loop (I’m running server in Flask) I only get the text from the LAST
Tag: jinja2
How can I make this javascript apply on every div returned by jinja
I have a Jinja tag that returns some database data. I added some javascript that works on some divs inside the for tag. The javascript code applies only on the first div. I am using fullPage.js in order to make full page scroll. How can I solve this? html: js: Here is the css for fullPage.js: I am a begginer
Jinja2, JavaScript and CSP
I’ve been studying Flask and Jinja2 for a while now, and I notice that all the books and tutorials I’ve found put {% block js %} after {% block body %}. This appears to violate CSP which, as I understand it, dictates that all javascript code be in external files and that the <script> tags which include those files be
Value attribute of button not passed when icon is clicked directly
I have an html button created using bootstrap that is essentially an Icon used to toggle the state of an item on a website. When it is clicked a request is fired: regardless of whether I click the button or the icon, the toggleAck event triggers. However, if I click the icon directly instead of the button the value attribute
store html checkbox value into list using flask, jinja2
I’m in need of some help. I am using flask and I have had an HTML page with a bunch of checkboxes. They are ordered as option1, option2, and option3 and then under the options, there are a number of boxes to check. I am trying to keep track of what all boxes have been checked for which option and