$('#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>
私は、ユーザーが入力ボックスに任意の単語をクリックするとオプションを非表示にしたいと思います。 クロムでは動作していますが、IEでは動作しません。問題は何か、解決方法
'$( '#helloSellect option')のように' .hide() 'を試すことができますか?hide();' – guradio
いいえ動作しません。 –