jQuery UI Multiselect Widget
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
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("<input type='hidden' value='" + selected_value + "' name='selected_items_values_in_order[]' />"); } }); });
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。