Answer the question
In order to leave comments, you need to log in
How to hide and show HTML elements using flask?
How to hide and show HTML elements with flask
Answer the question
In order to leave comments, you need to log in
If you need to implement it through Flask, then you can use conditional statements in the template and pass a boolean value to the render_template() function . Example:
@app.route('/')
def index():
return render_template('index.html', param = True)
{% if param %}
<!-- Какой-то HTML -->
{% endif %}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question