Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add thumbnail image to drop down after using jQuery Chosen plugin?

I used jquery chosen plugin to create beautiful dropdown. Dropdown contents are image file names. I want to show a small thumbnail of each image file beside of dropdown options.

enter image description here

any suggestion would be appreciated.

like image 367
SalmanShariati Avatar asked Apr 16 '14 07:04

SalmanShariati


2 Answers

There's an extension for Chosen to manage images :

http://websemantics.github.io/Image-Select/

like image 122
Raphaël Althaus Avatar answered Sep 28 '22 02:09

Raphaël Althaus


The above extension is not adequate, the image items will be disappear when searching. Try the following extension: https://github.com/djgrant/chosen-image But the config is:

$(".my-select").chosenImage({
  disable_search: false
});
like image 32
kien ngo doan Avatar answered Sep 28 '22 03:09

kien ngo doan