Ausgewählte Option css funktioniert nicht in IE10?
$('#inputTest').on('keyup', function() {
$('#helloSellect option').css({
display: "none"
});
})
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input id="inputTest">
<select id="helloSellect" multiple>
<option>oye</option>
<option>ram</option>
<option>raj</option>
<option>ban</option>
</select>
Ich möchte die Optionen verstecken, wenn der Benutzer ein beliebiges Wort in Eingabefeld klickt. In Chrome funktioniert es, funktioniert aber nicht im IE. Was ist das Problem und wie kann es gelöst werden?
können Sie versuchen, '.hide()' wie '$ ('# HalloSelect-Option'). Hide();' – guradio
Nein funktioniert nicht. –