Select2 Plugin Jquery , issues with default message -


i using select2 plugin display auto suggested drop downs , tags.

below how code looks :

$('.select2member').select2({                multiple: true,          minimuminputlength :1,         placeholder : cake.message.notice.b,         ajax {          url ": cake.url.a ,         datatype : json,         quietmillis : 100,        cache : true,         data :function(term,page){            return{            term: term,             page_limit : 10            };           }         }      }); 

everything seems working fine except when field empty .it's drop down message appears saying 'no matches found'.

i want remove default message when field empty .

i have tried adding below paramenters jquery:

tags:[''], tokenseparators: [','], formatnomatches: function() {             return '';         }, dropdowncssclass: 'select2-hidden' 

also added class select2-hidden display:none !important attribute.

in above case , gets hidden , if there successful search doesn't show.

any expert advice highly appreciated.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

python - RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK -