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
}
}
});
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 } } });