how can I change dynamic select options into links?
<select id="input-sort" class="form-control" onchange="location = this.value;">
{% for sorts in sorts %}
{% if sorts.value == '%s-%s'|format(sort, order) %}
<option value="{{ sorts.href }}" selected="selected">{{ sorts.text }}</option>
{% else %}
<option value="{{ sorts.href }}">{{ sorts.text }}</option>
{% endif %}
{% endfor %}
</select>
which gives the result as
Select the option...
- List item 1
- List item 2
- List item 3
- List item 4
where I want to be
select: List item 1 List item 2 List item 3 List item 4
Here I found this question similar to mine but it is not working in my condition link1 link