Select2: Hide certain options dynamically

前端 未结 10 798
情深已故
情深已故 2020-12-03 06:56

Basically what I\'m looking for is the ability to hide options from the dropdown of select items. So, technically they would still be options, but you just wouldn\'t be able

10条回答
  •  无人及你
    2020-12-03 07:18

    For select2 3.5, this works for me:

    .select2-result.select2-result-unselectable.select2-disabled {
        display: none;
    }
    

提交回复
热议问题