Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On click of submit get all selected items #106

Open
hardikbhilota opened this issue Aug 9, 2016 · 1 comment
Open

On click of submit get all selected items #106

hardikbhilota opened this issue Aug 9, 2016 · 1 comment

Comments

@hardikbhilota
Copy link

hardikbhilota commented Aug 9, 2016

Hi Yanick,

I liked the version of multiselect you created the most and I am using it with SharePoint list. On click of Generate option my code is dynamically fetching SP list items and show them in available pane, however I am not able to figure out how to select all the selected items on click of Submit button. Could you please help me with some hint/code.

Regards,
Hardik Bhilota

@hardikbhilota
Copy link
Author

hardikbhilota commented Aug 12, 2016

I got the solution for above issue.

var defaultOptions = {  
//availableListPosition: 'bottom',  
moveEffect: 'blind',    
moveEffectOptions: {direction:'vertical'},  
moveEffectSpeed: 'fast' 
};
var widgets = {   'dynamic': $.extend({}, defaultOptions) };
$.each(widgets, function(k, i) {
    var selectedItems = $('#multiselect_'+k).multiselect(i).find('option:selected');
}

However I am not sure if this is the correct way of retrieving selected options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant