still a hard time with pop up and populating field

requirement:

in the form, i have an input field (open text, no restriction, called color. next to it i have an icon or button named ‘suggested color’.

I want to do this:

on click icon, window pops up, loaded from the suggested color table database, a list of colors ex. red, black, green.

user can either pick from this pop up ( on select it would populate the name of the color in the input field. if no select, user can enter anything he wants in the input field. any direction please?

It is time to start searching the great extensions which the community has donated to all of us. Start off here:

http://www.yiiframework.com/extensions/

A few examples:

http://www.yiiframework.com/extension/farbtastic

http://www.yiiframework.com/extension/minicolors-colorpicker

but I am sure there’s more.

Hope this helps and remember if you like any of the extensions vote the creator up.

Cheers,

bettor