jQuery Chosen plugin without search field

前端 未结 12 877
时光说笑
时光说笑 2021-02-05 02:45

Not sure if this has been covered somewhere, but I couldn\'t find it in the documentation, and was wondering if it\'d be possible to not include the search input box with the jQ

12条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-05 03:20

    $(".chzn-select").chosen({disable_search_threshold: 3});
    

    If the number of element of the select is smaller than disable_search_threshold (here 2 and less), the search box will not display.

提交回复
热议问题