option with display:none; does not work on IE
this seems to work for me:
http://jsfiddle.net/PP4AP/1/
$('select option').each(function(){
if(this.style.display == 'none')
{
$(this).remove();
}
});
Hiding disabled select options in internet explorer 11 using angularjs
Here's a working jsfiddle https://jsfiddle.net/rsuuwkh9/
<select ng-model="selectedName" ng-change="resetSkills()" ng-options="name as name.name for name in names">
<option value="" ng-if="!selectedName">--Select a name --</option>
</select>
Related Topics
Wait Until an HTML5 Video Loads
Href="Tel:" and Mobile Numbers
Convert a SQL Query Result Table to an HTML Table for Email
How to Get a Background Image to Print Using CSS
Which Elements Support the ::Before and ::After Pseudo-Elements
Can You Use CSS to Mirror/Flip Text
Align the Form to the Center in Bootstrap 4
Partially Colored Arabic Word in HTML
CSS - How to Have Children in Different Parents the Same Height
Create a Slanted Edge to a Div
How to Disable the Resize Grabber of <Textarea>
Do Http Post Methods Send Data as a Querystring
Why Doesn't "Display: Block" & "Width: Auto" Stretch a Button to Fill the Container
Remove Blur Effect on Child Element
Prevent "Overscrolling" of Web Page
Disable Form Autofill in Chrome Without Disabling Autocomplete