Filtering a select list via input box & jquery

前端 未结 3 1749
北恋
北恋 2021-01-23 05:16

I was wondering if i could get some help with filtering a select list using an input box via jquery.

Here\'s what my js looks like, but it doesnt seem to work. I\'m gues

3条回答
  •  滥情空心
    2021-01-23 06:12

    Try disabling instead of hiding.

    $(this).attr('disabled', 'disabled');
    

    Another thing you could do is delete the option from the DOM altogether.

提交回复
热议问题