harvesthq / chosen

Deprecated - Chosen is a library for making long, unwieldy select boxes more friendly.
http://harvesthq.github.io/chosen/
Other
21.86k stars 4.11k forks source link

Display the value rather than the text label as selected #3025

Open NimbusDigital opened 5 years ago

NimbusDigital commented 5 years ago

I am using Chosen to allow users to select their international dialling code as part of a telephone number field.

My original select box has the actual dialling code as the value and the dialling code along with the country as the option label text.

Once selected, I would like Chosen to display the value (ie "+44") as opposed to the full text (ie "+44 United Kingdom").

Is this possible?

Joshandrews43 commented 5 years ago

Same issue, except using Material UI. Also for country code.