https://github.com/2degrees/jquery.selectmore
Replace select multiples with a widget which allows quick search
https://github.com/2degrees/jquery.selectmore
Last synced: 2 months ago
JSON representation
Replace select multiples with a widget which allows quick search
- Host: GitHub
- URL: https://github.com/2degrees/jquery.selectmore
- Owner: 2degrees
- License: bsd-3-clause
- Created: 2012-05-16T15:35:18.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2014-07-14T15:20:20.000Z (almost 12 years ago)
- Last Synced: 2026-01-02T07:19:33.661Z (6 months ago)
- Language: JavaScript
- Size: 199 KB
- Stars: 1
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jQuery.selectmore
Fed-up with the poor usability of the native HTML select mutiple element? If so, use **jQuery.selectmore** and allow users to quickly search for multiple without using the `[Ctrl]` or `[Cmd]` key!
## Dependencies
* jQuery 1.7.2+
* jQuery UI 1.8.20+
* jquery.ui.core.js
* jquery.ui.widget.js
* jquery.ui.autocomplete.js
*NB: An older version of jQuery UI might work (no testing done). However, jQuery 1.7.0 will be required due to the new event based syntax.*
## Usage
Include the plugin-script along with the jQuery and the required jQuery UI dependencies (see above), e.g.
```html
```
Then inside a javascript file (or inline in a script tag), call the ``selectmore()`` method on the wrapped set you wish to update, e.g.
```javascript
$('select[multiple]').selectmore();
```
### AMD
Alternatively you can include the module with require.js or similar:
``` javascript
require(['jquery', 'jquery.selectmore'], function ($) {
$(function () {
$('select[multiple]').selectmore();
});
});
```
*NB* This relies on jQuery UI being available under the name 'jquery.ui'.
## Supported browsers
* Internet Explorer 6+
* Firefox 12.0 on Ubuntu 11.10, OS X Lion 10.7.3
* Chromium 18.0.1025.168 on Ubuntu 11.10
* Chrome 18.0.1025.168 on OS X Lion 10.7.3
* Safari 5.1.5 (7534.55.3) on OS X Lion 10.7.3