Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PHP - is it possible to display a picture in a drop down menu?

New Here ,
Apr 14, 2010 Apr 14, 2010

For instance, I want the users to select a color and would like to display a small box with the color.  Is that possible?  I tried hand coding it but it didn't work.  Thanks.

TOPICS
Server side applications
293
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 15, 2010 Apr 15, 2010

It should be possible.

Post the code you have

Whatever you want to show up should be placed in "value"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 15, 2010 Apr 15, 2010
LATEST

Maybe you are mis-understanding me.

I want the drop down box to have a value of #0000...which it does. Right

now it says "Black" as one option, I have several options of colors, but

what I want is when the user displays the drop down selection, it has all

choices, but also a small box with the color of each option.

The value of the selection isn't to be changed, just what is displayed to

the user.

Is this possible?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines