I am using sumoselect plugin for generating multi select drop down list. I have total 5 drop down list using this. Now i want to generate array for each options selected. each list should generate different arrays. How can i do this.
I have found this solution:
$('.a').SumoSelect({triggerChangeCombined: false});
$('.b').SumoSelect({triggerChangeCombined: false});
$('.c').SumoSelect({triggerChangeCombined: false});
$('.d').SumoSelect({triggerChangeCombined: false});
$('.e').SumoSelect({triggerChangeCombined: false});
$(".options li").bind('click', function(event, ui) {
obj.push($this.val);
});
It is applicable for all the list and generate single array. Can any one suggest me how can I specify perticular event of each dropdown list?
Also tried
$(".a .options li").bind('click', function(event, ui) {
if(obj1.index($this.val)<0)
obj1.push($this.val);
});
$(".b .options li").bind('click', function(event, ui) {
if(obj2.index($this.val)<0)
obj2.push($this.val);
});