Include images in <option> (For a <select>) html form [duplicate]
Possible Duplicate:
Adding images with option tag
Is it possible to (instead of text values) store an image inside the part of the html form?
If by store you mean display next to items in a drop-down list, yes, it is possible with some fiddling.
What about something like these?
http://www.marghoobsuleman.com/jquery-image-dropdown
http://www.queness.com/post/204/25-jquery-plugins-that-enhance-and-beautify-html-form-elements#9
You'll probably need jQuery.
No, an html select
element can take only textual options, using the option
tag.
If you want to use images then you'd have to use a styled ul
(or other) element.
精彩评论