Select2 dropdown width. skill_select_id').

Select2 dropdown width. However, in some cases, you may want to control the width of the dropdown to better fit your layout. I just can't work out how to get the width to update when the selected option is changed. I would like to set long width for the dropdown when it opens up (for example - 800px, or even automatic evaluated width). dropdownAutoWidth: false, By default, Select2 will attach the dropdown to the end of the body and will absolutely position it to appear above or below the selection container. So, to override the inline width, you'd have to use !important in your CSS. See full list on select2. Select2 is a jQuery based replacement for select boxes. org Jan 20, 2015 · Original select has width set in css to 200px. Any ideas? Many Jul 1, 2017 · I have also tried element, 100% option in width //Another Try $('. You can achieve this by setting the dropdownAutoWidth option to false and then defining a specific width for the dropdown. gfalq a9o 8rs gsvm5 ysg1w1 ynah mbl oky agbht 3dtzki