需要删除上下箭头符号。这是我结合 JS 的 HTML 代码。
<div class="wrap-select">
<select onchange="setLocation(this.value)">
<option value="http://localhost/purcheasy/phones.html?dir=asc&order=position" selected="selected">Position</option>
<option value="http://localhost/purcheasy/phones.html?dir=asc&order=name">Name</option>
<option value="http://localhost/purcheasy/phones.html?dir=asc&order=price">Price</option>
</select>
</div>
最佳答案
您可以使用 css 隐藏此箭头,如下所示:
.sort-by-switcher{display:none}
或者你可以像这样使用jquery:
jQuery('.sort-by-switcher').remove();
关于javascript - Magento 网站 - 按选项排序 : upper and lower arrow is bind with sorting data, 只需要删除上下箭头,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36567305/