title: How to make dropdown layered navigation in Magento 2
body: <p>I'm figuring out about Magento 2 layered navigation. I want to make this navigation with dropdown lists.</p>
  <p>I try this code:</p>
  <pre><code>&lt;select onchange=&quot;setLocation(this.value)&quot;&gt;
   &lt;option value=&quot;&quot;&gt;&lt;?php echo 'Choose an Option...' ?&gt;&lt;/option&gt;
   &lt;?php foreach ($this-&gt;getItems() as $_item): ?&gt;
       &lt;option
          &lt;?php if ($_item-&gt;getCount() &gt; 0): ?&gt;
          value=&quot;&lt;?php echo $this-&gt;urlEscape($_item-&gt;getUrl()) ?&gt;&quot;&gt;&lt;?php echo $_item-&gt;getLabel() ?&gt;
          &lt;?php else: echo '&gt;' . $_item-&gt;getLabel() ?&gt;
          &lt;?php endif; ?&gt;
          (&lt;?php echo $_item-&gt;getCount() ?&gt;)
      &lt;/option&gt;
  &lt;?php endforeach ?&gt;
  &lt;/select&gt;
  </code></pre>
  <p>but I am getting the error &quot;setLocation(this.value) is not defined&quot;. If anyone has another option, please let me know.</p>