If the list that you have (entries in <select> ) is entered by the user and the user can enter 500 characters, they will be defined.
In this case, I would not go to the <select> list, but create my own list, for example, <div> .
Itβs not difficult, all you need is
div containing the default option,
hidden div with all parameters
When the user clicks the default button, display a hidden div
When you click elements in a hidden div (which is now visible), make the selected element in the first div
Perhaps there is already a jquery plugin for this. but I'm not sure that you are open to jquery, but I am not a jQuery expert.
I know this comparatively greater effort than having select , but I think it's worth the effort. All hacks - expand the div onmouseover, onclick, etc., do not look great, it can still break your design, and depending on the amount of data that the user can enter, it still will not be effective.
In the custom list approach, you can wrap items so that you have full control.
Nivas
source share