For my more significant selects, the search box in Select2 is wonderful. However, in one instance, I have a simple selection 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.
hide
method is described here: api.jquery.com/hide As long as you only apply it to the appropriate selector then, yes, it should hide the search box alone. Nevertheless, there are plugin-specific methods that can be employed to hide it, which I would recommend you use instead (see below). – CanterminimumResultsForSearch: -1
line which someone has added on the setup options before. – Atomy