我在选择中有多个选项.我已经对选项进行了排序并禁用并使用jquery隐藏了重复的选项.该代码在chrome和firefox中运行良好,但在IE和safari中,显示为:none的选项仍然显示.
这是代码的jsfiddle:
<select> <option value="5797">34</option> <option value="5809">37</option> ... <option value="5653">71</option> <option disabled="" selected="selected" value="53">Eye</option> <option disabled="disabled" style="display: none;" value="5441">52</option> <option disabled="disabled" style="display: none;" value="5443">52</option> ... <option disabled="disabled" style="display: none;" value="5431">51</option> </select>