I am selected to make fun Cambodia. Everything works fine, but I have a question.
I think the alternate list takes the width given in the visual cobobox. All my options are very long and I need to make a big blanket to avoid the two lines going.
Is it possible to make a small combobox, such as 150px, when it stops, and when a huge list is open?
Yes, this is possible. This can be done in 2 ways:
- Style "width" in selected.css in class
chzn-drop Adding
- Adding width through jQuery.
I like the second and here's the code:
HTML:
jQuery:
$ ('.chzn-select'). Chosen (); $ ('. Chzn-drop'). CSS ({"width": "300px"});
Result:
- Adding width through jQuery.