Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery Chosen plugin without search field

Not sure if this has been covered somewhere, but I couldn't find it in the documentation, and was wondering if it'd be possible to not include the search input box with the jQuery chosen plugin (used to style select inputs). Specifically I'd like to use the standard select one without it.

http://harvesthq.github.com/chosen/

like image 236
bob_cobb Avatar asked Apr 06 '12 19:04

bob_cobb


1 Answers

Just a quick follow-up: I noticed that in function

AbstractChosen.prototype.set_default_values 

a variable is read from

this.options.disable_search 

So you can disable the search-field with

jQuery('select').chosen( {disable_search: true} ); 

without using a fixed-number threshold.

like image 133
Munneson Avatar answered Sep 22 '22 09:09

Munneson