如何在select2删除按钮上添加条件

时间:2018-06-26 07:03:41

标签: jquery-select2

enter image description here

我需要在删除按钮上添加条件,如何添加脚本?

1 个答案:

答案 0 :(得分:0)

$('select').select2({
    placeholder: 'This is my placeholder',
    allowClear: true
});

https://select2.org/selections

Title --> Clearable selections