Tuesday, 17 September 2013

select2-jquery: How to set maximumselectionsize dynamically

select2-jquery: How to set maximumselectionsize dynamically

I've a requirement where I'll decide Max selections to be allowed in
select2 ui.How can I do that. I tried by
$('#ChnageLnk').on('click',function(){
$('#SelectD').select2({maximumselectionsize :1});
});

No comments:

Post a Comment