javascript - Modify Select2 search box -
i using ajax feature of select2 control load options asynchronously. however, change default template of search box have placeholder , icon on right.
is there proper way that?
placeholder: example:
$(".js-example-placeholder-single").select2({ placeholder: "select state", allowclear: true });
custom icon:
you can append using js. create dom element, append want , style css. of course can add additional functionality if needed.
Comments
Post a Comment