我如何将以下代码转换为<select> <option>
下拉列表?目前,当我选择下面的任何一个链接时,它会过滤掉一个仅显示所选项目的列表。
<span>Filters:</span>
<a class="button" href="#all">All</a>
<a class="button" href="#settings">Settings</a>
<a class="button" href="#categories">Categories</a>
试图做这样的事情
<select>
<option class="button" href="#all">All</option>
<option class="button" href="#settings">Settings</option>
<option class="button" href="#categories">Categories</option>
...