Implementing Select field with Flask
Revision as of 13:47, 26 June 2017 by PeterHarding (talk | contribs)
See:
<td> <select name="State" class="inputSelect"> {% for state in ctx.State_options %} <option value="{{state}}" {{'selected' if ctx.State == state else ''}}>{{state}}</option> {% endfor %} </select> </td>