admin管理员组

文章数量:1323150

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 pany 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.

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 pany 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.

Share edited Nov 24, 2011 at 4:22 Greg Pettit 10.8k5 gold badges57 silver badges73 bronze badges asked Nov 24, 2011 at 4:11 001001 65.2k99 gold badges238 silver badges357 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

I would use the native jQuery UI Autoplete 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/K5q5U/

本文标签: javascriptdropdown in jquery with multiline and imagesStack Overflow