I'm trying to hide some options from a drop down. JQuery's .hide()
and .show()
work great in Firefox and Chrome, but no luck in IE.
Any good ideas?
I'm trying to hide some options from a drop down. JQuery's .hide()
and .show()
work great in Firefox and Chrome, but no luck in IE.
Any good ideas?
Just to mention that IE11 navigator.appName returns 'Netscape' :) So taking it into consideration:
Of many possible approaches, this method requires browser sniffing (which in general is not great) but doesn't require having multiple copies of the same select list to swap in and out.
Credit for this lies squarely with Dima Svirid here: http://ajax911.com/hide-options-selecbox-jquery/