JQuery Chosen.js - how to search in several variants?

I am using a jquery plugin called Chosen. I see that it has a search option for a single selection, does anyone know how I can turn it on if using multiple selection?

thanks

+6
source share
2 answers

The selected search works with multiple selections. Check out the examples on your website http://harvesthq.github.com/chosen/

If you ask how to use it, here is an example: HTML code:

<select multiple class="chzn-select"> 

Javascript Code:

 $('.chzn-select').chosen(); 

And it is done.

+10
source

For others who may be looking for a live demo, there is a great fiddle: http://jsfiddle.net/RVH8D/ , which shows a simple implementation of the selected ones and includes images in the result list.

If you need a few changes

 <select...> 

to

 <select... multiple="true"> 
+1
source

Source: https://habr.com/ru/post/923814/


All Articles