Options with display:none not hidden in IE

后端 未结 10 1039
梦如初夏
梦如初夏 2020-11-27 17:41

I have multiple options in a select. I have sorted the options and disabled and hidden the duplicate options with jquery. The code works well in chrome and firefox but in IE

10条回答
  •  天涯浪人
    2020-11-27 18:22

    Use following Js to hide option tag

    
    
    
    $('#selectlist option[value=53]').hide();
    $('#selectlist option[value=52]').hide();
    $('#selectlist option[value=5443]').hide();
    

    Ref : jsfiddle.net/p8Gmm/7

    Or

    Ref :

    http://jsfiddle.net/chiragvidani/vhKdw/

提交回复
热议问题