I am trying to make a facet navigation as a dropdown select, instead of the other options. I have it pulling in the facet items and displaying them in a dropdown. However, I can't get it to change the results based on the selection of the dropdown. Can anyone help me out with this possibly? I'd also like the dropdowns to be in alphabetical order. Below is my code so far.
<#if response.facets?? && response.facets?size gt 0>
<div class="dropdown" id="search-facets" >
<#list response.facets as facet>
<div class="aria-controls='facet-${facet?counter}'">
<h4>${facet.name}</h4>
<#if facet.name == 'Pillars'>
<div id="facet-${facet?counter}">
<select class="select-pillar" id="selectPillar facet-${facet?counter}">
<#list facet.allValues as value>
<option value="${value.queryStringParam}" class="${value.label?lower_case}">
${value.label}
</option>
</#list>
</select>
</div>
<#elseif facet.name == 'County'>
<div id="facet-${facet?counter}">
<select class="select-county" id="selectCounty facet-${facet?counter}">
<#list facet.allValues as value>
<option value="${value.label}" class="${value.label?lower_case}">
${value.label}
</option>
</#list>
</select>
</div>
</#if>
</div>
</#list>
</div>
</div>
</#if>