https://github.com/michael/multiselect
jQuery UI Multiselect Widget
https://github.com/michael/multiselect
Last synced: about 1 year ago
JSON representation
jQuery UI Multiselect Widget
- Host: GitHub
- URL: https://github.com/michael/multiselect
- Owner: michael
- License: mit
- Created: 2009-04-20T15:31:29.000Z (about 17 years ago)
- Default Branch: master
- Last Pushed: 2020-02-02T22:57:02.000Z (over 6 years ago)
- Last Synced: 2024-10-11T12:15:39.147Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://www.quasipartikel.at/multiselect
- Size: 517 KB
- Stars: 557
- Watchers: 26
- Forks: 208
- Open Issues: 116
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE.txt
Awesome Lists containing this project
README
## jQuery UI Multiselect
This repository is no longer actively maintained by the author. However, pull requests are always welcome. If there's someone interested in officially maintaining the plugin, please let me know.
In case you are looking for an AJAX version, please also consider "Yanick Rochon's":http://github.com/michael/multiselect/tree/next version, or also check the official "version 2.0":https://github.com/yanickrochon/jquery.uix.multiselect currently in development.
To get the order of the selected items as selected, you can do like
```javascript
var form = $("form#my_form");
$(form).on('submit', function(){
$("ul.selected li").each(function(){
var selected_value = $(this).attr('data-selected-value');
if(selected_value){
$(form).append("");
}
});
});
```