Created
March 16, 2022 15:14
-
-
Save joelanman/21cd78960c6744e59206c89512a9bdd7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set values = [ | |
"apples", | |
"oranges", | |
"pears", | |
"bananas" | |
] %} | |
<select name="fruit" class="govuk-select"> | |
{% for value in values %} | |
<option value="{{ value }}" {% if data["fruit"] == value %} selected {% endif %}> | |
{{ value }} | |
</option> | |
{% endfor %} | |
</select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment