{"id":7613,"date":"2015-09-16T11:59:26","date_gmt":"2015-09-16T11:59:26","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/09\/16\/select2-hiding-the-search-box-open-source-projects-select2-select2\/"},"modified":"2015-09-16T11:59:26","modified_gmt":"2015-09-16T11:59:26","slug":"select2-hiding-the-search-box-open-source-projects-select2-select2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/09\/16\/select2-hiding-the-search-box-open-source-projects-select2-select2\/","title":{"rendered":"select2 &#8211; hiding the search box-open source projects select2\/select2"},"content":{"rendered":"<p>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&#8217;t find any options for this in the constructor.<\/p>\n<p>I could, of course, just use a regular html select, but for consistency I&#8217;d like to use Select2 if possible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7613","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7613"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7613\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}