I would like to choose entry values from a frontend dropdown and reuse the chosen value directly.
{% set entries = craft.entries.section('mountainbikes') %}
<select name="year">
{% for entry in entries %}
<option value={{ entry.year }}>{{ entry.year }}</option>
{% endfor %}
How can i get the chosen value and reuse it in the same template? For example:
{% for entry in entries %}
{% if entry.year == '2015' %} /* chosen value in dropdown field */
{{ entry.title }}
{% endif %}
{% endfor %}
Thanks for any help!