How to hide or remove options from jQuery Chosen select dropdown

前端 未结 5 1219
野性不改
野性不改 2021-01-11 19:56

I would like to hide certain elements from a dropdown that is created using the Chosen plugin.

I have tried removing it:

$( \'option:contains(\"Swatc         


        
5条回答
  •  心在旅途
    2021-01-11 20:38

    You can hide with value or with class name. Check working code here.

    
    
    
    
    
     
    
       
    
    
      

    Show/Hide options with value and class



提交回复
热议问题