pbauerochse / searchable-option-list

a jquery plugin for a searchable optionlist
MIT License
79 stars 54 forks source link

Change selected items container #59

Open ashish-joshi-sr opened 7 years ago

ashish-joshi-sr commented 7 years ago

I use this plugin a lot. very good plugin indeed. but it would be great if there is a way to allow selected item to be placed in whatever container desired. currently if list is huge and select all of them then it pushes the dropdown to go further below.

tulinkry commented 7 years ago

See my fix for this https://github.com/tulinkry/searchable-option-list/commit/41acff55d2a2316f3af030fe92d002fd59d61632

which allows you to specify the result container as a jquery object with the option object, eg

$('#select').searchableOptionList({
        resultsContainer: $("#some_container"),
});