Implementing Select field with Flask
Jump to navigation
Jump to search
See:
<select name="State" class="inputSelect">
{% for state in ctx.State_options %}
<option value="{{state}}" {{'selected' if ctx.State == state else ''}}>{{state}}</option>
{% endfor %}
</select>