javascript - Magento 网站 - 按选项排序 : upper and lower arrow is bind with sorting data, 只需要删除上下箭头

标签 javascript html css magento

需要删除上下箭头符号。这是我结合 JS 的 HTML 代码。

<div class="wrap-select">
      <select onchange="setLocation(this.value)">
           <option value="http://localhost/purcheasy/phones.html?dir=asc&amp;order=position" selected="selected">Position</option>
           <option value="http://localhost/purcheasy/phones.html?dir=asc&amp;order=name">Name</option>
           <option value="http://localhost/purcheasy/phones.html?dir=asc&amp;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/

相关文章:

javascript - 如何在 TypeScript 中表达幂等(自展平)类型?

javascript - 如何移动 JQuery 子菜单

javascript - 对于谷歌地图标记,是否可以在 svg 中包含多种颜色

css - 导航div的格式

javascript - 根据 promise 值分配主干 URL

javascript - 如何在javascript数组中创建动态键和值

javascript - 在 for 循环中使用 switch case 播放音频太快

带有事件类的 jQuery 切换

html - 在 Firefox 中获取停用的滚动条

jquery - 在显示器 :table element hidden with display:none 上使用 show() 时保持边框间距