Icons in dropdown options

jh

Member
Hi

Is it possible to get icons into dropdown select box choices? Or maybe small images if not? The icons would depend on the values of the input (eg Yes has a tick, No has an x etc etc)

Kind Regards
 
Hi

The dropdown is a db join, the labels are from a 'field' element.
I have tried some html in this field (eg b, i etc) and it shows with formating in the list (table) view. However I can not get icons to work, using code such as:

<i class="fa fa-close"></i>No

Any suggestions would be greatfully received.

Kind Regards
 
It's an HTML thing, you can't have HTML tags in a select's options.

I have tried to allow it with enhanced dropdowns, which use the jQuery 'chosen' plugin to replace the select with simple CSS based structure, but there's some issues deep inside J! and the 'chosen' JS that are preventing that.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top