Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 635 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 635 Bytes

jQuery auto width select

A jQuery plugin that resizes selects to to width of their selected option.

Settings

Option Type Default Description
iconWidth integer 0 The width of the icon (if any), or more likely the width of the padding over which the icon is applied as background image. Only useful if the select isn't set or doesn't inherit of box-sizing: border-box
classes string false The classes to be applied on the temporary element to inherit the same font properties as the select, space-separated.

Dependencies

jQuery

License

Copyright © Steve Piron