Skip to main content
Known Participant
April 15, 2010
Question

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

  • April 15, 2010
  • 1 reply
  • 292 views

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.

This topic has been closed for replies.

1 reply

Inspiring
April 15, 2010

It should be possible.

Post the code you have

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

Known Participant
April 16, 2010

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?