Apologies for any language barriers, English is not my first language.
I am looking to upgrade the Chosen Select feature for multiple selected options. When the number of chosen options exceeds the available space in the container, I want them to be hidden with an ellipsis on the last visible option to indicate that there are more options hidden. Something similar to these examples: https://i.sstatic.net/qd3YC.jpg https://i.sstatic.net/WiSLM.jpg
I have managed to hide the overflowing options but I'm struggling to implement the ellipsis on the last visible option.
<script src="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.4.2/chosen.jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.4.2/chosen.min.css">
<div>
<select data-placeholder="Choose a Country..." class="chosen-select" multiple style="width:350px;" tabindex="4">
<option value=""></option>
<option value="Any">[Any]</option>
<option value="United States">United States</option>
<option value="United Kingdom">United Kingdom</option>
</select>
</div>
Check out this example on jsfiddle
I would greatly appreciate any suggestions or assistance, thank you.