Q: How do I return all selected values onSelect
Mashiane opened this issue · 2 comments
Mashiane commented
Hi there
Thanks for this wonderful work. I'd like to return all selected values using the onSelect method. Please advise. Thanks
styopdev commented
Hi, thanks for feedback.
You can use .get method like this
var picker = $("#days").multiPicker({ ... });
picker.onSelect(function() {
picker.multiPicker('get', function (value) {
// value - this is what are you looking for;
console.log(value);
})
})
Let me know if anything else
Mashiane commented
Thanks a lot, just forgot the ')' on the second last sentence, otherwise its working. Great stuff.