How can I set the width of select box options?
I tried to find a solution through CSS. But I failed to do it. Doesn’t matter; I have written a simple Javascript code for it. This can do something for it. function shortString(selector) { const elements = document.querySelectorAll(selector); const tail=”…”; if (elements && elements.length) { for (const element of elements) { let text = element.innerText; …