JQuery Hide Option doesn't work in IE and Safari

后端 未结 7 1988
天命终不由人
天命终不由人 2020-11-30 09:58

I\'m trying to hide a few options in a dropdown box using .hide(). This works perfectly fine in firefox and chrome, but it doesn\'t work in IE and Safari. My original code i

7条回答
  •  一整个雨季
    2020-11-30 10:41

    I found one workaround for this, Just wrap with Jquery wrap()) to option you want to hide,it will hidden automatically and unwrap span with unwrap() to show it again.

提交回复
热议问题