如何在wordpress下拉菜单中隐藏禁用的选项?

问题描述

我使用了 display:none;在 CSS 中,但它仅适用于 Chrome。

我正在寻找一些功能

我发现了这个,但我不知道如何添加

$('select option').each(function() {
   var thisAttr = $(this).attr('disabled');
   if(thisAttr = "disabled") {
      $(this).hide();
   }
});

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)