# bsmSelect - Better Select Multiple # based on asmSelect - Alternate Select Multiple by Ryan Cramer * [Google code project](http://code.google.com/p/jquery-asmselect/) * [Github page](http://github.com/ryancramerdesign/jquery-asmSelect) * [Ryan's article about asmSelect](http://www.ryancramer.com/journal/entries/select_multiple/) * the original README can be found in the project root folder ## Demo ## [bsmSelect demo](http://www.suumit.com/projects/bsmSelect/examples/index.html) ## Usage ## Include jquery, bsmSelect, and css in document head: Use a jQuery selector in your document ready function: jQuery(function($) { $("select[multiple]").bsmSelect(); }); If desired, you can specify options when you call the plugin: jQuery(function($) { $("select[multiple]").bsmSelect({ addItemTarget: 'top' }); }); The newly created select default option is the original select title attribute: ## Requirements ## * jQuery 1.4+ (you might need a newer version for IE9 compatibility) ## Options ## ### Primary Options ### * listType: * Specify what list will be created or used as part of the bsmSelect. * Can accept a callback that accepts the original . * Default: 'bsmSelect' * listClass: * Class for the newly created list of listType (ol or ul). * Default: 'bsmList' * listSortableClass: * Another class given to the list when sortable is active. * Default: 'bsmListSortable' * listItemClass: * Class given to the
  • list items. * Default: 'bsmListItem' * listItemLabelClass: * Class for the label text that appears in list items. * Default: 'bsmListItemLabel' * removeClass: * Class given to the remove link in each list item. * Any element found in the
  • with this class will remove it. * If you give the
  • this class, clicking anywhere on the
  • will remove it. * Default: 'bsmListItemRemove' * highlightClass: * Class given to the highlight . * Default: 'bsmHighlight' ## Authors and contributors ## * [Ryan Cramer](http://www.ryancramer.com/) is the author of the original asmSelect * [Victor Berchet](http://github.com/vicb) is the author of bsmSelect * [Andy Fowler](http://github.com/andyfowler) has contributed many enhancements * [Cracky](https://github.com/Cracky) * [Marc Busqué](https://github.com/laMarciana) has contributed to fix [issue #21](https://github.com/vicb/bsmSelect/issues/21) and with minimal CSS * [DrewBe121212](https://github.com/DrewBe121212) has fixed issues 28 et 29. ## History ## see [history.md](history.md). ## Related Projects ## * [Chosen](https://github.com/harvesthq/chosen/)