Hide select option in IE using jQuery
问题 Currently I am using jQuery to hide/show select options using following code. $(\"#custcol7 option[value=\" + sizeValue + \"]\").hide(); This works fine in Firefox, but doesnt do any good in other browsers. How to I hide options from select in Chrome, Opera and IE? 回答1: I just came across this and instead of cloning the entire select over and over I just replaced the options that need to be hidden with span elements and hiding the spans ( though the browser didnt visually show them anyway, I