Trying to hide an option element from a list. I have tried several methods however, cannot seems to work. I need to call select by name as I cannot add ID or class.
$('select[name*="boxes"] option[value="box6"]').hide();
here the fiddle: http://jsfiddle.net/q2nb08t6/
any suggestions?
If you can go with removing it, this seems to work in all browsers:
Tested in FF, Chrome, Safari, IE and Opera.
Demo Fiddle