'How to make a filter for graph in html using json by python list data?
list = ['Jan', 'Feb', 'Mar', 'April']
Required Output: Dropdown filter of above list on HTML.
Solution 1:[1]
Using jinja:
<select name="months">
{% for month in list %}
<option value="{{ month }}">{{ month }}</option>
{% endfor %}
</select>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Muhammed Jaseem |
