Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dropdown in jquery with multi-line and images?

Which jquery extension do you use to add images to a jquery drop down?

Example User types in person's name, a drop down list appears with person's profile picture, name and description and company icon. User selects person from drop down list.

[PROFILE-PHOTO] FirstName LastName [COMPANY_ICON]
                Description

[PROFILE-PHOTO] FirstName LastName [COMPANY_ICON]
                Description

[PROFILE-PHOTO] FirstName LastName [COMPANY_ICON]
                Description

EDIT: dropdown list.

like image 582
001 Avatar asked Nov 24 '11 04:11

001


1 Answers

I would use the native jQuery UI Autocomplete with some simple modifications to add images. Not only is it lighter weight than others out there, it's got far more developers behind it and a strong standards group ensuring it won't bloat in the future.

Here's a great example on a fiddle: http://jsfiddle.net/K5q5U/

like image 194
bpeterson76 Avatar answered Nov 10 '22 01:11

bpeterson76