L
L
LB7772015-06-05 16:30:18
HTML
LB777, 2015-06-05 16:30:18

How to truncate the selected value in the select tag?

It is necessary to trim the selected value to 10 characters in the drop-down menu.
Those. I have

<select>
    <option>дядя Вася</option>
    <option>Иванов Иван Иванович</option>
    <option>дядя Саша</option>
</select>

And when we select "Ivanov Ivan Ivanovich" it is necessary that it visually look like this in the tag "Ivanov Ivan Ivanovich ...", but in the drop-down list there was still "Ivanov Ivan Ivanovich"
How to do this?
Because I'm doing the interface on react.js, can anyone tell me if there are any features that would make it so in it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GreatRash, 2015-06-05
@GreatRash

jsfiddle.net/yjeAN/3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question