Override Minimum length string of Select2

前端 未结 4 1626
梦毁少年i
梦毁少年i 2021-01-01 14:13

Select2 Jquery Plugin

I was having hard time how to override the default message for minimum length input in jquery Select2.

by default the plugin gives th

4条回答
  •  遥遥无期
    2021-01-01 14:54

    You can try this on version 4.0 or higher you can see reference for answer frome this link : issues reference

    $("#select2").select2({
        minimumInputLength: 1,
      language: {
        inputTooShort: function() {
            return 'Please Add More Text';
        }
      }
    });
    

提交回复
热议问题