select2 - hiding the search box
问题 For my more significant selects, the search box in Select2 is wonderful. However, in one instance, I have a simple select of 4 hard-coded choices. In this case, the search box is superfluous and looks a little silly being present. Is it possible to hide it somehow? I took a look through the documentation online and couldn't find any options for this in the constructor. I could, of course, just use a regular html select, but for consistency I'd like to use Select2 if possible. 回答1: See this