michael / multiselect

jQuery UI Multiselect Widget
http://www.quasipartikel.at/multiselect
MIT License
557 stars 208 forks source link

limit selections #165

Open abuzer-firdousi-confiz opened 9 years ago

abuzer-firdousi-confiz commented 9 years ago

I am looking for some parameter to limit the selections, I just want user to select two values, i need the same control like this, with search box to search the list. It should be similar to something like as follow. but change event is not working. $(".multiselect").multiselect({ change:function(){ if($('.multiselect').val().length > 2 ){ // disable selection }else{ // enable selection } } });